Jump to content

Recommended Posts

Posted

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...