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