[Mathlib-commitlog] mathlib/Source/MathLib/Functions/Trigonometric coth.java, NONE, 1.1
Status: Beta
Brought to you by:
st_mueller
|
From: Stefan M. <st_...@us...> - 2007-01-12 21:25:44
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Trigonometric In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23447/Source/MathLib/Functions/Trigonometric Added Files: coth.java Log Message: --- NEW FILE: coth.java --- package MathLib.Functions.Trigonometric; import MathLib.Functions.ExternalElementWiseFunction; import MathLib.Tokens.NumberToken; public class coth extends ExternalElementWiseFunction { public coth() { name = "coth"; } /**trigonometric functions - calculate the hyperbolic cotangent of this token * @param double value * @return the result as a double array */ public double[] evaluateValue(double[] arg) { NumberToken num = new NumberToken(); tanh tanhF = new tanh(); double[] temp = tanhF.evaluateValue(arg); double[] result = num.divide(new double[]{1,0}, temp); return result; } } /* @GROUP trigonometric @SYNTAX coth(value) @DOC . @NOTES @EXAMPLES . @SEE sec, csc, csch, sech, cot */ |