Strange behaviour of the dollar sign ($) in CAS with the Substitute command
I recently discovered GeoGebra CAS's functionality of referencing previous cells' outputs via the dollar sign ($). My observation is as follows (please correct me if I'm wrong):
- "$n" references the output of the n-th CAS cell.
- "$" references the output of the previous CAS cell and automatically evaluates to "$n" with n being the number of the previous cell.
So, effectively, "$" is equivalent to "ans" on typical pocket calculators like "Texas Instruments TI-30X II" or "%" in Wolfram Mathematica. Great feature, I love it!
However, I have stumbled upon a strange situation involving the "Subsitute" command, where the automatic evaluation of "$" to "$n" does not work and directly addressing "$n" is the only way to do it (see attachment).
This really does not seem like intended behaviour to me, so please take a look at it and fix it, so it works as expected!
Thank you and kind regards