• 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 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

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

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