SuanShu, a Java numerical and statistical library



com.numericalmethod.suanshu.analysis.integration.univariate.riemann.substitution
Class NoChangeOfVariable

java.lang.Object
  extended by com.numericalmethod.suanshu.analysis.integration.univariate.riemann.substitution.NoChangeOfVariable
All Implemented Interfaces:
SubstitutionRule

public class NoChangeOfVariable
extends Object
implements SubstitutionRule

This is a dummy substitution rule that does not change any variable. It is mainly for testing purpose. The substitution is \[ \int_{a}^{b}f(x)dx = \int_{a}^{b}f(t)dt \]


Constructor Summary
NoChangeOfVariable(double a, double b)
          Construct an NoChangeOfVariable substitution rule.
 
Method Summary
 UnivariateRealFunction dx()
          the first order derivative of the transformation: x'(t) = dx(t)/dt
 double ta()
          Get the lower limit of the integral.
 double tb()
          Get the upper limit of the integral.
 UnivariateRealFunction x()
          the transformation: x(t)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoChangeOfVariable

public NoChangeOfVariable(double a,
                          double b)
Construct an NoChangeOfVariable substitution rule.

Parameters:
a - the lower limit
b - the upper limit
Method Detail

x

public UnivariateRealFunction x()
Description copied from interface: SubstitutionRule
the transformation: x(t)

Specified by:
x in interface SubstitutionRule
Returns:
x(t)

dx

public UnivariateRealFunction dx()
Description copied from interface: SubstitutionRule
the first order derivative of the transformation: x'(t) = dx(t)/dt

Specified by:
dx in interface SubstitutionRule
Returns:
x'(t) = dx(t)/dt

ta

public double ta()
Description copied from interface: SubstitutionRule
Get the lower limit of the integral.

Specified by:
ta in interface SubstitutionRule
Returns:
the lower limit

tb

public double tb()
Description copied from interface: SubstitutionRule
Get the upper limit of the integral.

Specified by:
tb in interface SubstitutionRule
Returns:
the upper limit


Copyright © 2010-2014 Numerical Method Incorporation Limited. All Rights Reserved.