org.apache.commons.math3.analysis.function
Class Subtract

java.lang.Object
  extended by org.apache.commons.math3.analysis.function.Subtract
All Implemented Interfaces:
BivariateFunction

public class Subtract
extends Object
implements BivariateFunction

Subtract the second operand from the first.

Since:
3.0
Version:
$Id: Subtract.java 1364377 2012-07-22 17:39:16Z tn $

Constructor Summary
Subtract()
           
 
Method Summary
 double value(double x, double y)
          Compute the value for the function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subtract

public Subtract()
Method Detail

value

public double value(double x,
                    double y)
Compute the value for the function.

Specified by:
value in interface BivariateFunction
Parameters:
x - Abscissa for which the function value should be computed.
y - Ordinate for which the function value should be computed.
Returns:
the value.


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.