1. Hyperbolic trig functions

Anybody know what the formulas are to calculate the hyperbolic arcsin arcos and
arctan?

Thanks,
Jeremy

Edmund Burke: "All that is necessary for evil to triumph is for good men to do
nothing."

new topic     » topic index » view message » categorize

2. Re: Hyperbolic trig functions

Jeremy Peterson wrote:
> 
> Anybody know what the formulas are to calculate the hyperbolic arcsin arcos
> and arctan?
> 
> Thanks,
> Jeremy
> 
> Edmund Burke: "All that is necessary for evil to triumph is for good men to
> do nothing."

Here are the definitions of these functions I wrote some time ago:

--Hyperbolic Arcsin
global function arcsinh(atom x)
    return log(x+sqrt(x*x+1.0))
end function

--Hyperbolic Arccos
global function arccosh(atom x)
    return log(x+sqrt(x*x-1.0))
end function

--Hyperbolic Arctan
global function arctanh(atom x)
    return log((1.0+x)/(1.0-x))/2.0
end function


Larry Miller

new topic     » goto parent     » topic index » view message » categorize

3. Re: Hyperbolic trig functions

Thanks, Larry.

Jeremy

Edmund Burke: "All that is necessary for evil to triumph is for good men to do
nothing."

new topic     » goto parent     » topic index » view message » categorize

4. Re: Hyperbolic trig functions

Larry Miller wrote:
> 
(snip)
> 
> Here are the definitions of these functions I wrote some time ago:
> 
> }}}
<eucode>
> --Hyperbolic Arcsin
> global function arcsinh(atom x)
>     return log(x+sqrt(x*x+1.0))
> end function
> 
> --Hyperbolic Arccos
> global function arccosh(atom x)
>     return log(x+sqrt(x*x-1.0))
> end function
> 
> --Hyperbolic Arctan
> global function arctanh(atom x)
>     return log((1.0+x)/(1.0-x))/2.0
> end function
> </eucode>
{{{

> 
> Larry Miller

Would you object to the ESL project using those routines in its math.e file?
You'll get full credit for them of course.


The Euphoria Standard Library project :
    http://esl.sourceforge.net/
The Euphoria Standard Library mailing list :
    https://lists.sourceforge.net/lists/listinfo/esl-discussion

new topic     » goto parent     » topic index » view message » categorize

5. Re: Hyperbolic trig functions

I did put those functions in the math.e module, but I forgot to put Larry's name
in the credits.  I can add that sometime though.

Jeremy

Edmund Burke: "All that is necessary for evil to triumph is for good men to do
nothing."

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu