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