Fmax Output Help
Posted 14 March 2014 - 11:35 PM
I've been trying, unsuccessfully, to extricate the numerical value of the fMax function, and I'm hoping someone can help me.
For instance, if I type fmax(sin(x),x,0,π) I get an output of:
Is there any way for me to assign just the numerical value of MaxValue to some letter?
Any suggestions are appreciated!
Posted 29 March 2014 - 09:05 AM
fmax returns a list so you can use standard list functions on it. Assuming the list is stored in ans, you can retrieve its first element using ans[ 1 ] which wiil be MaxValue=1. Then use GetRight( ans[ 1 ] ) to get the right side of the equality which will give you 1. So in short you could do:
GetRight( A[ 1 ] ) value
Now value contains 1.
- ero likes this
Posted 12 May 2014 - 07:47 AM
I had temporarily given up on the project that I needed this for, so had not been checking the thread, but a big (belated) thank you to you for helping me out with this.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users