Re: Decimal Place Limiting
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