on-internet
← Community

Trigonometric computation using math library

Stack Overflow ·

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.

Comments

Sign in or sign up to comment and upvote.

No comments yet.