MuPad: question about _if_ statement



I am trying to write some simple MuPad code that would determine at which
point the graphs of two real-valued functions intersect.

To do that, I use an if statement inside a loop. The if statement looks like
this:

if (f1(x) <= f2(x)) then ... end_if

MuPad complains about this construct and says that it won't let me compare
symbolic expressions in an if statement with the <= operator.

This seems rather limiting to me - is there any way around this? How do you
implement this in MuPad, if an if statement cannot be used?

Thanks for any advice!

Gary


.



Relevant Pages

  • Re: MuPad: question about _if_ statement
    ... > point the graphs of two real-valued functions intersect. ... > MuPad complains about this construct and says that it won't let me compare ... Maybe for some reason your loop isn't causing the functions to be ...
    (sci.math.symbolic)
  • Re: MuPad: question about _if_ statement
    ... > point the graphs of two real-valued functions intersect. ... > MuPad complains about this construct and says that it won't let me compare ... float around f1and f2in order to compare numbers. ...
    (sci.math.symbolic)
  • Re: MuPad: question about _if_ statement
    ... I restarted MuPad, and all of a sudden, ... the error message is gone! ... >> point the graphs of two real-valued functions intersect. ... I use an if statement inside a loop. ...
    (sci.math.symbolic)