Jul-18-2022, 07:00 PM
Hi
I have equation that i want to execute, but i cannot get it to run.
It returns
I have equation that i want to execute, but i cannot get it to run.
1 2 3 |
import numpy as np x = (np. abs ((np.sign) * ( 90 ) - 0.5 ) - 0.5 ) * (np. abs ((np.sign) * ( 270 ) + 0.5 ) - 0.5 ) |
Error:circle.py", line 3, in <module>
x = (np.abs((np.sign)*(90)-0.5)-0.5) * (np.abs((np.sign)*(270)+0.5)-0.5)
TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'
How should i proceed?