Solved qSin oddity
-
I am sure qSin does what it should so what am I doing wrong?
My fancy casio calculator says (deg mode):
sin(0.72)=0,012...
qSin says:
sin(0.72)=0.659... okay, is obviously in rad so I convert it to deg
qRadiansToDegrees(qSin(0.72))=37.78
wth... -
@pauledd
seems like your calculator is wrong
actually your Casio is in rads, where as qt is in deg.
so RadiansToDegrees seems like the wrong conversion, don't you think so :) -
@pauledd said in qSin oddity:
qRadiansToDegrees(qSin(0.72))=37.78
wth...For the record, it's the other way around:
qSin(qRadiansToDegrees(0.72))
... -
My calculator is not wrong:
@JohanSolo said in qSin oddity:
@pauledd said in qSin oddity:
qRadiansToDegrees(qSin(0.72))=37.78
wth...For the record, it's the other way around:
qSin(qRadiansToDegrees(0.72))
...qSin(qRadiansToDegrees(0.72)) gives -0.400678
qSin(qDegreesToRadians( 0.72)) gives 0.012566 (what I want)thanks
-
@pauledd said in qSin oddity:
qSin(qRadiansToDegrees(0.72)) gives -0.400678
qSin(qDegreesToRadians( 0.72)) gives 0.012566 (what I want)As you can see in qSin documentation, angle must be given in radian. So it is normal that
qSin(qRadiansToDegrees(0.72))
do NOT work! -
Yes thanks, I was quite confused by
"Returns the sine of the angle v in radians."That made me conclude the return value is in radians, not the value that I pass... D'oh!!