Skip to content

Commit

Permalink
fixes documentation for SQRT function
Browse files Browse the repository at this point in the history
  • Loading branch information
uklimaschewski committed Sep 15, 2024
1 parent 13bb8ec commit c44ccd2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
import java.math.BigInteger;
import java.math.MathContext;

/** Square root function, uses the implementation from <i>The Java Programmers Guide To numerical Computing</i> by Ronald Mak, 2002. */
/**
* Square root function, uses the implementation from <i>The Java Programmers Guide To numerical
* Computing</i> by Ronald Mak, 2002.
*/
@FunctionParameter(name = "value", nonNegative = true)
public class SqrtFunction extends AbstractFunction {

Expand All @@ -36,6 +39,7 @@ public EvaluationValue evaluate(
* From The Java Programmers Guide To numerical Computing
* (Ronald Mak, 2002)
*/

BigDecimal x = parameterValues[0].getNumberValue();
MathContext mathContext = expression.getConfiguration().getMathContext();

Expand Down

0 comments on commit c44ccd2

Please # to comment.