• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trigonometric Problem, Particularly tan() Function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trigonometric Problem, Particularly tan() Function


  • Subject: Re: Trigonometric Problem, Particularly tan() Function
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 13 Jul 2008 11:36:27 -0700


On 13 Jul '08, at 7:10 AM, Michael Vannorsdel wrote:

I don't think it's the cause but you should probably use tanf to avoid value casting to and from a double.

Rather, he should be using double instead of float, since he needs more precision. As one of the other Michaels on this thread pointed out, floats only have 23 bits of precision in the mantissa, while doubles have something like 47.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Trigonometric Problem, Particularly tan() Function (From: Patrick Walker <email@hidden>)
 >Re: Trigonometric Problem, Particularly tan() Function (From: Michael Vannorsdel <email@hidden>)

  • Prev by Date: Re: Remove overlap on NSBezierPath
  • Next by Date: Re: Webkit and image redirects
  • Previous by thread: Re: Trigonometric Problem, Particularly tan() Function
  • Next by thread: Re: Trigonometric Problem, Particularly tan() Function
  • Index(es):
    • Date
    • Thread