Hey guys I have the following code for a function that finds the range of a function given a restricted domain:
Define resdom(m)=
Func
Local a,b
fMin(m,x) -> a
fMax(m,x) -> b
m(a) -> a
m(b) -> b
return {a,b}
EndFunc
But unfortunately the cas wont calculate m(a), or any m(x) for that matter. If I set the variable in the definition up the top to be "m(x)" instead of "m" it tells me it isn't an appropriate variable.
Any idea how could simply evaluate m(x) inside another function?
Edit:
Just wanted to clarify, I would be calling the function resdom
like follows:
Define m(x)=4x
resdom(m(x))