Simplify Term that is a text by CAS

Birgit Lachner shared this question 3 years ago
Answered

I can do by hand, of cause, if I write the term in the CAS but is there any possibilty to show a simplified term in the graphic view using the CAS in the background to simplify a term that is given as a text?


Here is the file, where I want to use it: https://www.geogebra.org/m/TxVHGNZR


Thanks, Birgit

Comments (4)

photo
1

Hmm ... locks interessting. I will have a look at the code!


Thanks.

photo
1

Here is a simple trial to simplify term that are created randomly. https://www.geogebra.org/m/gK5Zqj67


At the moment it works properly, but I got sometime functions created from the term sometime the error message that the variable a is not defined ... but at the moment it works.


BTW: Okay, it works via JS but are there plans to use a simple command to pass a text to the CAS to simplify it?

photo
1

You need to use English command names in the scripting:


  1. ggbApplet.evalCommand('$1 = Vereinfache['+term+']');
  2. ggbApplet.evalCommand('$2 = Numerisch['+term+']');

© 2020 International GeoGebra Institute