Prime: fsolve with [..]
#1

I was pleasantly surprised that root finding for certain functions with fsolve and [interval] finds more than one solution with one call, e.g., fsolve(x^(3-4)-3,x,0..6) finds both roots, [1.57.. and 3]. This is in CAS view only. In Home view, any attempt to enter the interval (and changing x for X) gives an error message: two decimal separators in input!

One quirk: if the function is stored in, say, F7, in CAS view, executing fsolve(F7,'X',0..6) returns only one root (3), IF the Function app is the current app. If I switch to SOLVE as the current app, both roots are returned. ???

What object type is the interval [..]? Can that be tested for in a program?

#2

Sorry, typo . . the function should read X^(4-X)-3 in F7 (or x^(4-x)-3 in CAS view).

#3

Quote:

What object type is the interval [..]? Can that be tested for in a program?


It's a symbolic, if ii:=a..b then ii[0]=='..'
#4

Thank you!

I hope that in a later revision, symbolic expressions can be passed as arguments to programs!



Forum Jump: