[Mathlib-commitlog] mathlib/Source/MathLib/Functions/Matrix floor.java, NONE, 1.1
Status: Beta
Brought to you by:
st_mueller
|
From: Stefan M. <st_...@us...> - 2007-01-12 21:07:27
|
Update of /cvsroot/mathlib/mathlib/Source/MathLib/Functions/Matrix In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv15857/Source/MathLib/Functions/Matrix Added Files: floor.java Log Message: --- NEW FILE: floor.java --- package MathLib.Functions.Matrix; import MathLib.Functions.ExternalElementWiseFunction; public class floor extends ExternalElementWiseFunction { public floor() { name = "floor"; } /**Standard functions - rounds the value down @param double array @return the result as an OperandToken */ public double[] evaluateValue(double[] arg) { double[] result = new double[2]; result[REAL] = Math.floor(arg[REAL]); result[IMAG] = Math.floor(arg[IMAG]); return result; } } /* @GROUP matrix @SYNTAX floor(value) @DOC Rounds the value of the first operand down to the nearest integer. @EXAMPLES floor(-5.5) = -6 floor(2.3) = 2 @SEE ceil, round */ |