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