Proper way(s) to substitute X for x in a CAS expression
12-17-2013, 05:15 PM
Post: #3
 CR Haeger Member Posts: 275 Joined: Dec 2013
RE: Proper way(s) to substitute X for x in a CAS expression
(12-17-2013 03:23 AM)Helge Gabert Wrote:  subst() does work for me.

e.g., subst(x^2-5,x='X') in CAS view returns the desired X^2-5.

Then, store it in one of the predefined function names F1, etc.

Thank you - yes I see where this substitutes X for x properly (I forgot the ' ' marks).

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.

The f(x):=expression then F1:f steps are not too onerous for now.
 « 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

User(s) browsing this thread: 1 Guest(s)