Page 1 sur 1

low level substitution

Publié : dim. mai 07, 2023 6:24 pm
par XcasEngGuy
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

Re: low level substitution

Publié : lun. mai 08, 2023 6:28 am
par parisse
It's not possible right now, but it could be. Maybe adding quote as optional last argument?

Re: low level substitution

Publié : lun. mai 08, 2023 8:32 pm
par XcasEngGuy
I don't understand "last optional argument". Could you give an example?

Re: low level substitution

Publié : mer. mai 10, 2023 10:54 am
par parisse
subst(sin(x),x=pi,quote)
would return sin(pi) instead of 0.

Re: low level substitution

Publié : mer. mai 10, 2023 6:12 pm
par XcasEngGuy
I get 0, the same as without quote. I may have a config setting wrong.

Matt

Re: low level substitution

Publié : mar. mai 16, 2023 4:08 pm
par parisse
It's not yet in the binaries.

Re: low level substitution

Publié : mar. mai 16, 2023 6:14 pm
par XcasEngGuy
Ok, great. I will check later.

Thanks,
Matt

Re: low level substitution

Publié : sam. mars 23, 2024 2:02 pm
par compsystems
Hi, why is the following statement not returning 'y+x+x'?

subst(a+b,[a = (y+x),b = x],quote)

Re: low level substitution

Publié : lun. mars 25, 2024 10:04 am
par parisse
It does if autosimplification is off.

Re: low level substitution

Publié : lun. avr. 01, 2024 6:14 pm
par XcasEngGuy
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.