I’m having difficulty using the trig functions in Vex IQ Code Blocks. the function is not returning the correct value.
When I compute the asin(.707), I expect to get something close to 45 degrees or .785 radians. Instead I get something like 141.
Is this just incorrect? Or
Is it in some unit that I do not understand? If so what is the conversion to degrees?
Thanks for the observation, that fixed everything. Is that intended behavior. It looks like they ended up with something halfway between degrees and radians.
Forgot to divide by 180 to get radians
But added in the multiply by pi so it is not degrees.
Yep, you seem to be right. We noticed this previously but didn’t want to “fix” ahead of VEX Worlds in case anyone had mitigated the issue themselves… it’ll be apart of the next update to fix this properly (and likely make it degrees over radians, but we’re open to feedback)
Also prefer degrees over radians, but I did notice the cos/sin function require radians. Being consistent with degrees everywhere would be great!
Thanks
@tfriez The math major / teacher in me wants all radians… Would it be possible to to a degrees / radians drop down for all trig functions? I think it would be good to at least expose the kids to the idea that not everything is in degrees, and then you wouldn’t have to decide.