Re: Decimal Place Limiting
Re: Decimal Place Limiting
- Subject: Re: Decimal Place Limiting
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 1 Apr 2008 20:40:42 -0400
In other words, John asked his program to find the value of the
variable x in the equation
2x^2 + 4x + 3 = 0
Unfortunately, that equation has no real roots, only complex ones (namely
-1 + i/sqrt(2) and -1 - i/sqrt(2) ) and AppleScript doesn't handle
complex numbers.
If you change C from +3 to -3 then you get some real answers.
On Tue, Apr 1, 2008 at 7:10 PM, Michelle Steiner <email@hidden> wrote:
>
> On Apr 1, 2008, at 3:47 PM, Geoff Sheehan wrote:
> set top1 to ((B * B - 4) * (A * C))
>
> That is incorrect. The formula is (B^2) - (4*A*C)
>
> -- Michelle
>
>
> --
> "No" is not a bad word.
>
> _______________________________________________
> 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
>
--
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