This object is in archive! 

TableText - unbalanced brackets

Anirudh Venkataramanan shared this question 5 months ago
Answered

I am using the online web browser version of GeoGebra to create applets.


I was trying to create a table using the TableText function but received an error message saying I have unabalanced brackets. Looking at my script, I don't see anything that could be wrong.


TableText({"Steps", "Multiplying by 2", "#of Steps Added"}, {"Trunk", "a", "1"}, {"1", "2", "2"}, {"2", "2x2", "4"},{"3", "2x2x2", "8"}, {"4", "2x2x2x2", "16"}, {"5", "2x2x2x2x2",'32"}, {"6", "2x2x2x2x2x2", "64"})


Does anyone here know what the problem is and what I can do to resolve it?


thank you!

Comments (2)

photo
2

try:

TableText({"Steps", "Multiplying by 2", "#of Steps Added"}, {"Trunk", "a", "1"}, {"1", "2", "2"}, {"2", "2x2", "4"},{"3", "2x2x2", "8"}, {"4", "2x2x2x2", "16"}, {"5", "2x2x2x2x2","32"}, {"6", "2x2x2x2x2x2", "64"})

Element 7 : {"5", "2x2x2x2x2",'32"} (last Elemtent '32" is wrong; must be "32")

photo
1

Thank you, that fixed it!

photo
© 2019 International GeoGebra Institute