• 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: Dead Reckoning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dead Reckoning


  • Subject: Re: Dead Reckoning
  • From: Michael de Haan  <email@hidden>
  • Date: Fri, 09 Oct 2015 22:24:45 -0700

Thank you for all your input.



I made one small little change to accept time input in seconds.

>>>>>>


let secondsToHours = 2.7777778E-4

…………..

let rDistance = ((speed * time * knotsToMeters * secondsToHours) / earthRadius)

<<<<<<<<<<


> On Oct 9, 2015, at 9:33 PM, Rick Mann <email@hidden> wrote:
>
>
>> On Oct 9, 2015, at 21:24 , Graham Cox <email@hidden> wrote:
>>
>>
>>> On 10 Oct 2015, at 3:21 pm, Rick Mann <email@hidden> wrote:
>>>
>>> The compiler should figure that out either way it's written.
>>
>>
>> Does it actually replace a function call with an inline constant multiply?
>
> And it wouldn't be function calls, but instructions, something like
>
> MUL
> DIV
>
>
>
>






_______________________________________________

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


  • Follow-Ups:
    • Re: Dead Reckoning
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Dead Reckoning (From: Michael de Haan  <email@hidden>)
 >Re: Dead Reckoning (From: Michael de Haan  <email@hidden>)
 >Re: Dead Reckoning (From: Graham Cox <email@hidden>)
 >Re: Dead Reckoning (From: Rick Mann <email@hidden>)
 >Re: Dead Reckoning (From: Graham Cox <email@hidden>)
 >Re: Dead Reckoning (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Dead Reckoning
  • Next by Date: Data not retained in document based core data app with cocoa bindings
  • Previous by thread: Re: Dead Reckoning
  • Next by thread: Re: Dead Reckoning
  • Index(es):
    • Date
    • Thread