﻿OneVariableFunction Class   # OneVariableFunction Class

Class OneVariableFunction represents functions of one variable. Inheritance Hierarchy

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 OneVariableFunction
Default constructor. Creates an empty function object. OneVariableFunction(FuncDouble, Double)
Constructs a OneVariableFunction instance that encapsulates a given function of one variable.
Top Properties
NameDescription  DefaultDifferentiator
Gets and sets the default differentiator associated with functions of one variable.  DefaultIntegrator
Gets and sets the default integrator associated with functions of one variable. Differentiator
Gets and sets the differentiation method object associated with this function. Func
Gets the function encapsulated by this object. Integrator
Gets and sets the integration method object associated with this function.
Top Methods
NameDescription  Add(Double, OneVariableFunction)  Add(OneVariableFunction, OneVariableFunction)  Add(OneVariableFunction, Double) Clone
Creates a deep copy of this function. Derivative
Returns the first derivative of this function. Differentiate
Computes the numerical derivative of the current function at the given x-value.  Divide(Double, OneVariableFunction)
Divides a scalar by a function.  Divide(OneVariableFunction, OneVariableFunction)
Divides one function by another.  Divide(OneVariableFunction, Double)
Divides a function by a scalar. Evaluate(Double)
Evaluates the current function at the given x-value. Evaluate(DoubleVector)
Evaluates the current function at the given set of x-values. Evaluate(OneVariableFunction)
Creates a composite function. Integrate
Computes the integral of the current function over the specified interval.  Multiply(Double, OneVariableFunction)
Multiplies a function and a scalar.  Multiply(OneVariableFunction, OneVariableFunction)
Multiplies the two functions.  Multiply(OneVariableFunction, Double)
Multiplies a function and a scalar.  Negate
Negates the specified function.  Subtract(Double, OneVariableFunction)
Subtracts a function from a scalar.  Subtract(OneVariableFunction, OneVariableFunction)
Subtracts one function from another.  Subtract(OneVariableFunction, Double)
Subtracts a scalar from a function.
Top Operators
NameDescription  Addition(Double, OneVariableFunction)  Addition(OneVariableFunction, OneVariableFunction)
Sums the two functions.  Addition(OneVariableFunction, Double)  Division(Double, OneVariableFunction)
Divides a scalar by a function.  Division(OneVariableFunction, OneVariableFunction)
Divides one function by another.  Division(OneVariableFunction, Double)
Divides a function by a scalar.  (FuncDouble, Double to OneVariableFunction)
Implicit conversion from a Func<double, double> to a OneVariableFunction.  Multiply(Double, OneVariableFunction)
Multiplies a function and a scalar.  Multiply(OneVariableFunction, OneVariableFunction)
Multiplies the two functions.  Multiply(OneVariableFunction, Double)
Multiplies a function and a scalar.  Subtraction(Double, OneVariableFunction)
Subtracts a function from a scalar.  Subtraction(OneVariableFunction, OneVariableFunction)
Subtracts one function from another.  Subtraction(OneVariableFunction, Double)
Subtracts a scalar from a function.  UnaryNegation
Negates the specified function.
Top Fields
NameDescription differentiator_
Differentiator  DifferentiatorName function_
Captured function integrator_
Integrator  IntegratorName
Top Remarks
This class is no longer serializable. Instead, simply serialize the function pointed to by this class. See Also