How to create subtitute command for algebraic view because it only works in CAS view

jospercomp shared this question 2 months ago
Answered

I need to create a command similar to the substitute command where I have the expression of the function in terms of the variable x and the variable x in the expression I want to replace with expressions or values and that the output is in a text format.

f(x)=4x-1

text1="f(a+b)=4(a+b)-1"

text2="f(-2)=4(-2)-1"

f(x)=2x^2+x+1

text1="f(a+b)= 2(a+b)^2+(x)+1"

text2="f(-3)"=2(-3)^2+(-3)+1"

Best Answer
photo

Variant as laTex (include custom tool)

Comments (4)

photo
1

convert f(x)=4x-1 to text dragging it to graphics view

convert the text to unicode

substitute the unicode of x with the unicodes of (a+b)

then convert unicode to text

photo
2

Variant as laTex (include custom tool)

photo
1

Is there a tutorial on geogebra.org that explains how to create ggt files?

I don't know anything about how to create geogebra tools file.

photo
2

google search:

site: geogebra.com custom tool

https://www.google.com/sear...

thanks also to mathmagic (for the basic idea)

photo
© 2020 International GeoGebra Institute