Ignition Script Math functions

Hello

I am not able to use sqrt funtion & ^ power function. The runtime giving me error about this saying undefine symbol. which library to import to use this functions?

Try this:

import math print math.sqrt(4) #square root print math.pow(2,3) #power, or 2^3 print 2**3 #same thing

The carat (or ^) is a bitwise ‘or’ operator (I think)

EDIT: Oops! it’s an ‘xor’.