• 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
[moderator] Re: why use pow(x, 2)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[moderator] Re: why use pow(x, 2)?


  • Subject: [moderator] Re: why use pow(x, 2)?
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 2 Nov 2009 23:29:20 -0500

On Nov 2, 2009, at 2:25 PM, Ed Wynne wrote:

>> Um, "*" is multiplication, not exponentiation. Maybe you're thinking of the
>> "**" operator found in some languages, though not in C :)
>
> That said, the original question is a good one. Using x*x instead of pow(x,2)
> would be quite a bit faster, so except for clarity reasons, there isn't a good
> reason to use pow() in that case.

no, the original question was off-topic and should nerve have been posted to a cocoa-specific list._______________________________________________

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: 
 >why use pow(x, 2)? (From: Chunk 1978 <email@hidden>)
 >Re: why use pow(x, 2)? (From: Jens Alfke <email@hidden>)
 >Re: why use pow(x, 2)? (From: Chunk 1978 <email@hidden>)
 >Re: why use pow(x, 2)? (From: Ed Wynne <email@hidden>)

  • Prev by Date: [moderator Re: why use pow(x, 2)?
  • Next by Date: Re: override behaviour of handling NSLinkAttributeName
  • Previous by thread: Re: why use pow(x, 2)?
  • Next by thread: [moderator Re: why use pow(x, 2)?
  • Index(es):
    • Date
    • Thread