Results 1 to 2 of 2

Thread: Standard MC Calculator -> How does it get decimal accuracy for Sin/Cos?

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    56

    Standard MC Calculator -> How does it get decimal accuracy for Sin/Cos?

    Unfortunatetly I'm at a location where I can't test a few things out but I've always wondered how the MS calculator will get a more accurate result of Sin/Cos vs using Sin(x) in C# and/or other languages.

    The default Sin function returns a double type, so how does one get that extra accuracy if it only returns a double?

  2. #2
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: Standard MC Calculator -> How does it get decimal accuracy for Sin/Cos?

    Hmmm, interesting question. Algorithms for high precision calculations have been around for years. For example, I have a DLL that can produce up to 200 significant digits for math calculations. With it I was able to duplicate the result for sin(0.785) as the MS calculator:

    0.70682518110536592374613897300473

    It does seen odd that the MS calculator has better precision than std Excel, which gives:

    0.706825181105366

    Don't know.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width