[starlogo-users] Hyperbolic Tangent Function
Andrew Begel
abegel at eecs.berkeley.edu
Sun Feb 22 15:33:39 EST 2004
Looks like hyperbolic tangent is sinh(x) / cosh(x).
to tanh :x
output (sinh :x) / (cosh :x)
end
Hyperbolic sine is e^x - e^-x. Hyperbolic cosine is e^x + e^-x.
to sinh :x
output (e ^ :x) - (e ^ (0 - :x))
end
to cosh :x
output (e ^ :x) + (e ^ (0 - :x))
end
Does that work for you?
Andrew
On Feb 22, 2004, at 6:56 AM, MarkB wrote:
>
> Hi there,
>
> Is there a way to implement it in Starlogo?
>
> Thanks.
>
> -m
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
>
> _______________________________________________
> starlogo-users mailing list
> starlogo-users at media.mit.edu
> http://education.mit.edu/mailman/listinfo/starlogo-users
More information about the starlogo-users
mailing list