Python numpy.sin() and math.sin() is wrong?

Hi, look at this. Did I do something wrong? Are the sine of numpy and math wrong or did I do something wrong?
IDLE python 3.8:


Any web calculator:

I already tested math.degrees and math.radians, both gave the same thing.

???

id say its likely a radian thing. how did you apply the math.degrees()

i already use this.

I discovered the error, I should be using math.radians (45) inside math.sin (). Now it worked.

1 Like

proper math.sin(math.degrees(45))

i dont have python docs or a interpreter handy

edit: just saw your post, wasnt sure if its rad or deg native, glad you got it worked out

2 Likes