Address only right side of a functions equation

mathedummie shared this question 3 years ago
Answered

Let's say I have a Quaratic Function called c with y = 2*(x-1)² + 5

I wan't to extract "2*(x-1)² + 5" as text and put it equal to something else.

RightSide[c] unfortunately doesn't work. I'd rather not put the text string together one by one, because I don't want to end up with 1*(x-0)² + 0.

How can I do it?

Comments (3)

photo
1

Enter the equation using functional notation, e.g. f(x) = 2*(x-1)² + 5

Then use

FormulaText(f, false, false)

photo
1

This is the FormulaText command wiki page, for further info: https://wiki.geogebra.org/e...

photo
1

Maybe I did something wrong.

Going from y = 2*(x-1)² + 5 to

f(x) = 2*(x-1)² + 5

didn't get me any further. The problem was probably that I tried to do this in the Text Editor. I just declared a new variable RightSide(c) now and put this inside the Text field. Thanks!

photo
© 2021 International GeoGebra Institute