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

## umontreal.iro.lecuyer.functions
Class SqrtMathFunction

    java.lang.Object
      umontreal.iro.lecuyer.functions.SqrtMathFunction

All Implemented Interfaces:
  MathFunction

    public class SqrtMathFunction

extends Object
implements MathFunction

Represents a function computing the square root of another function f (x).

Constructor Summary
`SqrtMathFunction(MathFunction func)` Computes and returns the square root of the function `func`.

Method Summary
`double` | `evaluate(double x)` Returns the value of the function evaluated at x.
`MathFunction` | `getFunction()` Returns the function associated with this object.

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

Constructor Detail

### SqrtMathFunction

    public SqrtMathFunction(MathFunction func)

  Computes and returns the square root of the function `func`.

  Parameters:
    `func` - the function to compute square root for.

Method Detail

### getFunction

    public MathFunction getFunction()

  Returns the function associated with this object.

  Returns:
    the associated function.

### evaluate

    public double evaluate(double x)

  Description copied from interface: `MathFunction`
  Returns the value of the function evaluated at x.

  Specified by:
    `evaluate` in interface `MathFunction`
  Parameters:
    `x` - value at which the distribution function is evaluated
  Returns:
    function evaluated at `x`

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

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.