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

Trigonometry


  • Subject: Trigonometry
  • From: Royalguard11 <email@hidden>
  • Date: Wed, 13 Dec 2006 20:07:00 -0600

I'm not really sure if this is the right list to send this to, but the
applescript essential subroutine (under Math routines:
http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.02.htm)
contains an error. Specifically the trig ones. The problem is when
trying to get the Sine of 180, or the Cosine of 90 or 270, which
should all come out as 0. The script will instead return a number that
is very small (usually something close to 4.26446036797127E-17). I
have already corrected my versions of the script (using if commands
after getting the number between 0-360) that check for those numbers
and return 0, but I was hoping that Apple would make those corrections
for the future.


For reference, the specific if used:

if x is equal to 180 then
		return 0
	else

		--convert from degrees to radians

and

if x is equal to 90 then
		return 0
	else if x is equal to 270 then
		return 0
	else

		--convert from degrees to radians

Thank you!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Trigonometry
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Ask Skype to complete their AS interface
  • Next by Date: Re: Trigonometry
  • Previous by thread: Re: Ask Skype to complete their AS interface
  • Next by thread: Re: Trigonometry
  • Index(es):
    • Date
    • Thread