SSJ
V. 2.6.2.

umontreal.iro.lecuyer.functions
Class SqrtMathFunction

java.lang.Object
  extended by 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 function is evaluated
Returns:
function evaluated at x

SSJ
V. 2.6.2.

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