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

Re: sine wave


  • Subject: Re: sine wave
  • From: "Glenn L. Austin" <email@hidden>
  • Date: Sun, 31 Jan 2010 18:59:03 -0800

On Jan 31, 2010, at 6:46 PM, Graham Cox wrote:

>
> On 01/02/2010, at 1:22 PM, Chunk 1978 wrote:
>
>> i'm searching for a general algorithm to produce a cartesian sine wave
>> that outputs numbers, which i suppose would be based on maximum
>> distance (range) from Y while using a timer.
>
> v = range * sin(t)
>
> --Graham

Just remember that the argument to sin() must be in radians.  To convert degrees to radians, radians = degrees * kPI / 180.0;

--
Glenn L. Austin, Computer Wizard and Race Car Driver         <><
<http://www.austin-soft.com>



_______________________________________________

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: sine wave
      • From: Graham Cox <email@hidden>
References: 
 >sine wave (From: Chunk 1978 <email@hidden>)
 >Re: sine wave (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: convert password from SecKeychainFindGenericPassword to NSString
  • Next by Date: Re: bind:toObject:withKeyPath:options: Unidirectional or Bidirectional?
  • Previous by thread: Re: sine wave
  • Next by thread: Re: sine wave
  • Index(es):
    • Date
    • Thread