Question: Mean Value Theorem

Hi

I write below proc for mean value theorem:

 

It is true for below example:

f := x->x^2:

AB(f, 0, 5);

But my proc is not true for below example:

f := x -> x^3-2*x;
AB(f, -1, 4);
I think c has two value and it is not true.

How can I add a condition to my proc that c be between a and b (a<c<b)?

 

 

Please Wait...