12-12-2011, 03:07 PM
This is phenomenal. I was confused at first because I didn't realize that these functions needed the angle to be entered in radians. Once I realized that, I used the sample functions in the QM help "Math functions from C run-time library" from the degrees to radians conversion and now everything works great.
for the conversion and now everything works great. Thanks so much!!!
Stuart
ps note the type "converst" --> "converts" for double s
for the conversion and now everything works great. Thanks so much!!!
Stuart
ps note the type "converst" --> "converts" for double s
Quote:Example
double angleDegrees=30
def PI 3.1415926535897932384626433832795
double s=sin(angleDegrees*PI/180) ;;converst degrees to radians and calculates sin
double a=asin(s)*180/PI ;;calculates arcsin and converts radians to degrees
out s
out a