[gradsusr] hyperbolic tangent

Davide Sacchetti davide.sacchetti at arpal.gov.it
Tue Oct 22 12:00:58 EDT 2013


you colud implement tanh function using combinations of math_exp(num):

rc = (math_exp(2*num) -1) / (math_exp(2*num) +1)

it should work
bye bye
Davide

On Tue, 2013-10-22 at 08:31 -0700, Jean Pierre Arabonis wrote:
> Hi all
>  I need to get the tanh of an expression, ie something like
> tanh(htsgwsfc) , this is possible with the standard trig functions eg
> tan(htsgwsfc) works but not the hyperbolic ones.
> I would appreciate any advice.
> 
> 
>     Many thanks
>      Jean Pierre
> 
> 
> 
> 
> 
> 
> 
> 
>  
> -- 
> Jean Pierre Arabonis
> arabonis at yahoo.com
> Tel +27 21 780 1021 cell +27 84 401 1365
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

-- 
--> Attenzione cambio indirizzo: davide.sacchetti at arpal.gov.it
--
Davide Sacchetti
Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria
ARPAL Unità Tecnica Complessa di livello Regionale
V.le Brigare Partigiane 2 16121 Genova (I)
tel: +39 010 6437535                    fax: +39 010 6437520
mail: davide.sacchetti at arpal.gov.it     web: www.meteoliguria.it




More information about the gradsusr mailing list