Proper way(s) to substitute X for x in a CAS expression
12-20-2013, 09:07 AM
Post: #4
 cyrille de brébisson Senior Member Posts: 1,047 Joined: Dec 2013
RE: Proper way(s) to substitute X for x in a CAS expression
Hello,

Quote:Unfortunately, when storing this in Function.F1 using
X^2-5 Sto> F1 or F1:=X^2-5
The expression is evaluated (using real X value) which results in a real value in F1, not the expression.

Yes, in the same way that you would expect A:=1+2 to result in A=3 and not 1+2...

try using QUOTE (or '') as in:
F1:='X²-5', it will work...
QUOTE(input) (or 'input') stands for "do not evaluate what is inside" and is used just for that type of cases.

Merry xmass!
Cyrille
 « Next Oldest | Next Newest »

 Messages In This Thread Proper way(s) to substitute X for x in a CAS expression - CR Haeger - 12-17-2013, 12:32 AM RE: Proper way(s) to substitute X for x in a CAS expression - Helge Gabert - 12-17-2013, 03:23 AM RE: Proper way(s) to substitute X for x in a CAS expression - CR Haeger - 12-17-2013, 05:15 PM RE: Proper way(s) to substitute X for x in a CAS expression - cyrille de brébisson - 12-20-2013 09:07 AM RE: Proper way(s) to substitute X for x in a CAS expression - CR Haeger - 12-20-2013, 02:32 PM RE: Proper way(s) to substitute X for x in a CAS expression - Han - 12-20-2013, 05:53 PM RE: Proper way(s) to substitute X for x in a CAS expression - John P - 12-20-2013, 08:13 PM