Click or drag to resize

OneVariableFunction Class

Class OneVariableFunction represents functions of one variable.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreOneVariableFunction
    CenterSpace.NMath.CorePolynomial
    CenterSpace.NMath.CoreTabulatedFunction

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public class OneVariableFunction : ICloneable

The OneVariableFunction type exposes the following members.

Constructors
 NameDescription
Protected methodOneVariableFunction Default constructor. Creates an empty function object.
Public methodOneVariableFunction(FuncDouble, Double) Constructs a OneVariableFunction instance that encapsulates a given function of one variable.
Top
Properties
 NameDescription
Public propertyStatic memberDefaultDifferentiator Gets and sets the default differentiator associated with functions of one variable.
Public propertyStatic memberDefaultIntegrator Gets and sets the default integrator associated with functions of one variable.
Public propertyDifferentiator Gets and sets the differentiation method object associated with this function.
Public propertyFunc Gets the function encapsulated by this object.
Public propertyIntegrator Gets and sets the integration method object associated with this function.
Top
Methods
 NameDescription
Public methodStatic memberAdd(Double, OneVariableFunction) Adds the function and scalar.
Public methodStatic memberAdd(OneVariableFunction, OneVariableFunction) Adds the two functions.
Public methodStatic memberAdd(OneVariableFunction, Double) Adds the function and scalar.
Public methodClone Creates a deep copy of this function.
Public methodDerivative Returns the first derivative of this function.
Public methodDifferentiate Computes the numerical derivative of the current function at the given x-value.
Public methodStatic memberDivide(Double, OneVariableFunction) Divides a scalar by a function.
Public methodStatic memberDivide(OneVariableFunction, OneVariableFunction) Divides one function by another.
Public methodStatic memberDivide(OneVariableFunction, Double) Divides a function by a scalar.
Public methodEvaluate(Double) Evaluates the current function at the given x-value.
Public methodEvaluate(DoubleVector) Evaluates the current function at the given set of x-values.
Public methodEvaluate(OneVariableFunction) Creates a composite function.
Public methodIntegrate Computes the integral of the current function over the specified interval.
Public methodStatic memberMultiply(Double, OneVariableFunction) Multiplies a function and a scalar.
Public methodStatic memberMultiply(OneVariableFunction, OneVariableFunction) Multiplies the two functions.
Public methodStatic memberMultiply(OneVariableFunction, Double) Multiplies a function and a scalar.
Public methodStatic memberNegate Negates the specified function.
Public methodStatic memberSubtract(Double, OneVariableFunction) Subtracts a function from a scalar.
Public methodStatic memberSubtract(OneVariableFunction, OneVariableFunction) Subtracts one function from another.
Public methodStatic memberSubtract(OneVariableFunction, Double) Subtracts a scalar from a function.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Double, OneVariableFunction) Adds the function and scalar.
Public operatorStatic memberAddition(OneVariableFunction, OneVariableFunction) Sums the two functions.
Public operatorStatic memberAddition(OneVariableFunction, Double) Adds the function and scalar.
Public operatorStatic memberDivision(Double, OneVariableFunction) Divides a scalar by a function.
Public operatorStatic memberDivision(OneVariableFunction, OneVariableFunction) Divides one function by another.
Public operatorStatic memberDivision(OneVariableFunction, Double) Divides a function by a scalar.
Public operatorStatic member(FuncDouble, Double to OneVariableFunction) Implicit conversion from a Func<double, double> to a OneVariableFunction.
Public operatorStatic memberMultiply(Double, OneVariableFunction) Multiplies a function and a scalar.
Public operatorStatic memberMultiply(OneVariableFunction, OneVariableFunction) Multiplies the two functions.
Public operatorStatic memberMultiply(OneVariableFunction, Double) Multiplies a function and a scalar.
Public operatorStatic memberSubtraction(Double, OneVariableFunction) Subtracts a function from a scalar.
Public operatorStatic memberSubtraction(OneVariableFunction, OneVariableFunction) Subtracts one function from another.
Public operatorStatic memberSubtraction(OneVariableFunction, Double) Subtracts a scalar from a function.
Public operatorStatic memberUnaryNegation(OneVariableFunction) Negates the specified function.
Top
Fields
 NameDescription
Protected fielddifferentiator_Differentiator
Protected fieldStatic memberDifferentiatorName 
Protected fieldfunction_ Captured function
Protected fieldintegrator_Integrator
Protected fieldStatic memberIntegratorName 
Top
Remarks
This class is no longer serializable. Instead, simply serialize the function pointed to by this class.
See Also