low level substitution
Modérateur : xcasadmin
-
- Messages : 146
- Inscription : mer. janv. 13, 2010 3:20 pm
low level substitution
Is it possible to substitute values into an equation without evaluating the result so a student can see the equation with the numbers substituted in each location (like you would if you were doing it by hand)?
Matt
Matt
Re: low level substitution
It's not possible right now, but it could be. Maybe adding quote as optional last argument?
-
- Messages : 146
- Inscription : mer. janv. 13, 2010 3:20 pm
Re: low level substitution
I don't understand "last optional argument". Could you give an example?
Re: low level substitution
subst(sin(x),x=pi,quote)
would return sin(pi) instead of 0.
would return sin(pi) instead of 0.
-
- Messages : 146
- Inscription : mer. janv. 13, 2010 3:20 pm
Re: low level substitution
I get 0, the same as without quote. I may have a config setting wrong.
Matt
Matt
Re: low level substitution
It's not yet in the binaries.
-
- Messages : 146
- Inscription : mer. janv. 13, 2010 3:20 pm
Re: low level substitution
Ok, great. I will check later.
Thanks,
Matt
Thanks,
Matt
-
- Messages : 568
- Inscription : sam. févr. 04, 2017 11:34 pm
- Localisation : Colombia
- Contact :
Re: low level substitution
Hi, why is the following statement not returning 'y+x+x'?
subst(a+b,[a = (y+x),b = x],quote)
subst(a+b,[a = (y+x),b = x],quote)
Re: low level substitution
It does if autosimplification is off.
-
- Messages : 146
- Inscription : mer. janv. 13, 2010 3:20 pm
Re: low level substitution
By the way, thank you very much for this addition to subst. I use it extensively (with autosimplify off). It makes my derivations for class much more understandable.