# Fmax Output Help

2 replies to this topic

### #1 ero

ero

Newbie

• Members
• 2 posts

• Calculators:

Posted 15 March 2014 - 12:35 AM

Hi all,

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:

{MaxValue=1,x=π/2}

Is there any way for me to assign just the numerical value of MaxValue to some letter?

Any suggestions are appreciated!

### #2 MicroPro

MicroPro

Casio Overlord

• Deputy
• 640 posts
• Gender:Male
• Location:Iran

• Calculators:

Posted 29 March 2014 - 10:05 AM

Hi.

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:

fmax(sin(x),x,0,π) A
GetRight( A[ 1 ] ) value

Now value contains 1.
• ero likes this

ero

Newbie

• Members
• 2 posts

• Calculators: