Re: Math Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

arccos() is already included in the Euphoria distribution. Just include 
misc.e, then call x1 = arccos(x2), where x2 is either an atom or a sequence 
and it returns a sequence.

-- sample
-- with an atom
atom a, b
a = 0.22
b = arccos(a)
-- with a sequence
sequence c, d
c = {0, 1, -1, -0.34, 0.57}
d = arccos(c)



>From: francis at gmx.co.uk
>Reply-To: EUforum at topica.com
>To: EUforum <EUforum at topica.com>
>Subject: Math Question
>Date: Wed, 23 Jan 2002 01:49:00 +0100 (MET)
>
>
>What's the mathematical expression for acos(), or how would I write a
>function to implement it in Euphoria?
>
>
>I have a feeling this is a really dumb question, like it's a reciprical or
>something but I haven't done math for years :)
>
>Cheers
>
>--
>Sent through GMX FreeMail - http://www.gmx.net
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu