Big thanks to everyone for your input.
Have a very nice day.
Chris.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Bruce Epstein - Zeus Productions
Sent: Thursday, June 21, 2001 6:43 PM
To: Lingo-L Digest
Subject: inverse cosine
Inverse cosine isn't
Hi TIA.
the folowing code will do the calculation for you. please put the
Copyright
in your script.
Ralf.
-- Examples for Chapter 8 - "Math (and Gambling)" of "Lingo in a
Nutshell"
-- Copyright 1998-1999 Bruce A. Epstein
-- Zeus Productions
-- http://www.zeusprod.com/nutshell
-- mailto:[EMAIL
> Is there an inverse cosine function in lingo?
> I've looked and didn't find it.
>
> Anyone enough of a mathwiz to tell me how to calculate it if there's no such
> function available?
Danny Kodicek posted this to the dir-GameL list a while back...
> asin(x)=atan(x/sqrt(1-x*x))
> acos(x)=atan(s
Chris,
Here's your Lingo solution followed by a trig lesson as to how it was derived...
--
-- The Lingo Lesson --
--
--
on arcCos (thisValue)
-- compute appropriate theta value using
-- the arctan function
numerator = sqrt(1 - (thisValue * thisValue