Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.singularsys.jep.functions
Class SquareRoot

    java.lang.Object
      com.singularsys.jep.functions.PostfixMathCommand
          com.singularsys.jep.functions.SquareRoot

All Implemented Interfaces:
  PostfixMathCommandI, java.io.Serializable

    public class SquareRoot

extends PostfixMathCommand

See Also:
  Serialized Form

Field Summary

Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
`curNumberOfParameters, numberOfParameters`

Constructor Summary
`SquareRoot()`

Method Summary
`void` | `run(java.util.Stack<java.lang.Object> inStack)` Applies the function to the parameters on the stack.
`java.lang.Object` | `sqrt(java.lang.Object param)` Calculates the square root of the parameter.

Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
`checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SquareRoot

    public SquareRoot()

Method Detail

### run

    public void run(java.util.Stack<java.lang.Object> inStack)
             throws EvaluationException

  Applies the function to the parameters on the stack.

  Throws:
    `EvaluationException`

### sqrt

    public java.lang.Object sqrt(java.lang.Object param)
                          throws EvaluationException

  Calculates the square root of the parameter. The parameter must either be of type Double or Complex.

  Returns:
    The square root of the parameter.
  Throws:
    `EvaluationException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 Singular Systems http://www.singularsys.com/jep