Looking for help with checking an answer in a table

I have an activity where the students have to give me a base and an exponent that equals a given number. I want them to be able to type the base and the exponent in a table and have the check be that they result in the intended value. I have made it work for positive whole number bases and exponents, but cannot seem to make it accept a fractional base and a negative exponent. Please take a look and see if you can help me! Thank you!

In your answer check, put the base in parentheses and the exponent portion inside curly braces:

cellContent(1,3): when numericValue(`(${table1.cellNumericValue(1,1)})^{${table1.cellNumericValue(1,2)}}`)=16 "😎"  otherwise "🙁"

Without the parentheses, I think a negative base is read as -(b^e) instead of (-b)^e. Something similar with the exponent.

1 Like

Thank you!!! That worked!