Python TypeError: unsupported operand type(s) for ^: ‘float’ and ‘int’

Python’s exponentiation operator is **, not ^. ^ is bitwise XOR.

f=math.sqrt(1+(6*x+4)**2)

Leave a Comment