Posted January 20, 20214 yr In the MINDSTORMS app on the word-block side, sin() and cos() appear to work as expected, with the argument in degrees. But tan() does not give the right answer with the argument in degrees or in radians. For example, I'm getting tan(30) = -2.1e-7 and tan(30*3.14157/180) = -0.075, when I expect tan(30 degrees) = 0.58. If I switch over to text based input, math.tan() works as expected, with radians as input. Is anybody else confused by this in the word blocks or maybe already figured out what I'm overlooking?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.