We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Using tanh in Processing
Page Index Toggle Pages: 1
Using tanh in Processing (Read 563 times)
Using tanh in Processing
Jun 21st, 2006, 2:17pm
 
Hi, since the processing library doesn't have a tanh method, I want to use the tanh method from the java.lang.Math class in the standard Java library. When I try to do this, such as: "double result = 50 * (1 + (Math.tanh(md * probeoffsetd + b)));", Processing tells me that "No method named "tanh" was found in type "java.lang.Math".".

How can I enable Processing to look at the Math class properly? I know the tanh method is there because I looked in the Java API.

Thanks
Dave
Re: Using tanh in Processing
Reply #1 - Jun 21st, 2006, 2:30pm
 
Java version issue. There is a work-around at the bottom of the link detailed below.

http://forum.java.sun.com/thread.jspa?threadID=695627&messageID=4040181
Page Index Toggle Pages: 1