I know i’ve been feeling a little ill lately, but this is unbelievable,
So here’s my code
import direct.directbase.DirectStart
import math
angle = 45
print angle
print math.tan(angle)
opdivadj = 1
print opdivadj
print math.atan(opdivadj)
sqme = 3
print sqme
print 3^2
run()
Here’s the output
Now, why isn’t the tangent of 45 = 1?
And why isn’t the atan of 1 = 45?
My brain hurts…
Additionally, 3^2 seems to yield 1 instead of 9…
Am I missing some really fundamentals about python, or is this something in panda?
Python is 2.6.2
Panda is 1.6.2
Looks like ppython is maybe 32 bit (2.6.1)
This is on a macbook os 10.6.2, 64 bit.
I guess that could be it…
Everything else (tuts and prior code) runs using system python, however…
Thanks