Trigonometric computation using math library
I am trying to compute an expression using the below Python code: import math from math import sin, cos, pi value = ((sin)^2(pi/2))+((cos)^2(pi/2)) print ('value=', value) I am getting the following error. It says int object is not callable and points to the line that starts with value above.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.