• 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: Decimal Place Limiting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Decimal Place Limiting


  • Subject: Re: Decimal Place Limiting
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 1 Apr 2008 18:56:54 -0400

On Tue, Apr 1, 2008 at 6:47 PM, Geoff Sheehan <email@hidden> wrote:
>  set top1 to ((B * B - 4) * (A * C))

No, that's not right.  John had the quadratic formula correct.  The
two roots are

x = (-b + sqrt(b^2-4ac))/2a

and

x = (-b - sqrt(b^2-4ac))/2a

when 4ac > b^2 then the roots are imaginary, and AppleScript doesn't
do imaginary numbers.

--
Mark J. Reed <email@hidden>
 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

References: 
 >Decimal Place Limiting (From: John Amerkhanian <email@hidden>)
 >Re: Decimal Place Limiting (From: Geoff Sheehan <email@hidden>)

  • Prev by Date: Re: Decimal Place Limiting
  • Next by Date: Re: Decimal Place Limiting
  • Previous by thread: Re: Decimal Place Limiting
  • Next by thread: Re: Decimal Place Limiting
  • Index(es):
    • Date
    • Thread