Click to See Complete Forum and Search --> : hyperbolic function(sinh,cosh,tanh)


minusxblind
03-12-2007, 02:10 AM
can hyperbolic function such as sinh,cosh,tanh applied in java?should i derive the formula?

agent_x91
03-12-2007, 04:56 AM
Sorry, I assume you're the same person who asked about sinh function before and I suggested Math.sinh() [which doesn't exist]. I never checked it and haven't used it before so I wasn't sure. I've never used hyperbolic trig functions before so I'm not sure exactly what they are but if you can define it yourself using other methods from the Math class that'd probably be the best way to do it.

potterd64
03-13-2007, 05:49 PM
the Math class does have sinh, cosh, and tanh.
They take a double as arguments.

agent_x91
03-14-2007, 07:04 AM
It doesn't list them in the documentation... maybe it's because I'm looking at an older version of the documentation. Never mind, that means I've already answered your question then :cool: :D

potterd64
03-14-2007, 07:29 PM
I guess it's only available in the latest version of Java (1.6). Make sure your version is 1.6 or above if you want to use these functions!

agent_x91
03-15-2007, 06:52 AM
They are methods, not functions.

potterd64
03-15-2007, 12:27 PM
you say tomato one way, while I pronounce it another way.
Method, function, doesn't matter.

agent_x91
03-16-2007, 09:25 AM
Tomato is the same word with the same definition, just different pronounciations. Methods and functions are two separate things.

potterd64
03-16-2007, 12:52 PM
Ok well when I originally said "functions" I meant function as in mathematical function, not methods of the Math class. So I'm right :p

agent_x91
03-18-2007, 04:44 PM
Well actually you're still wrong I'm afraid because having an older version of java doesn't stop you using the mathematical functions; having a newer version simply provides you with methods which allow you to use them more easily.

potterd64
03-19-2007, 12:10 PM
Ok I guess you win. Now let's end this quibble.:D