Input Box and Displaying Radicals

Ross Moyer shared this question 5 years ago
Answered

Hello,

I am creating a file where students need to enter in a value like 7*sqrt(2). However, I would like it to display in the text box as the exact value with the integer 7 in front radical 2. Currently, it turns it into a rounded decimal.

Is there a way to make sure it doesn't change it's form in the box and go to a rounded decimal?

Thank you,

RM

Comments (4)

photo
1

perhaps:

3a50195f82010297f09d6e810f6b23e0

photo
1

Guess no. Maybe as a workaround you could add a dynamic text at the end of the input box, showing the exact entered value.

If a is the entered value, create a dynamic text like SurdText(a)

photo
1

in testo1, of alfabeta2, write Surdtext(N) in the box of last object

photo
1

Thank you for the suggestions (I'd forgotten about SurdText() as a possible work around). I will have to take a look this weekend and see what I come up with.

RM

© 2023 International GeoGebra Institute