NMath Reference Guide

## One |

Class OneVariableFunction represents functions of one variable.

Inheritance Hierarchy

SystemObject

CenterSpace.NMath.CoreOneVariableFunction

CenterSpace.NMath.CorePolynomial

CenterSpace.NMath.CoreTabulatedFunction

CenterSpace.NMath.CoreOneVariableFunction

CenterSpace.NMath.CorePolynomial

CenterSpace.NMath.CoreTabulatedFunction

Syntax

The OneVariableFunction type exposes the following members.

Constructors

Name | Description | |
---|---|---|

OneVariableFunction | Default constructor. Creates an empty function object. | |

OneVariableFunction(FuncDouble, Double) | Constructs a OneVariableFunction instance that encapsulates a given function of one variable. |

Properties

Name | Description | |
---|---|---|

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. |

Methods

Name | Description | |
---|---|---|

Add(Double, OneVariableFunction) | Adds the function and scalar. | |

Add(OneVariableFunction, OneVariableFunction) | Adds the two functions. | |

Add(OneVariableFunction, Double) | Adds the function and scalar. | |

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. |

Operators

Top

Fields

Name | Description | |
---|---|---|

differentiator_ | Differentiator | |

DifferentiatorName | ||

function_ | Captured function | |

integrator_ | Integrator | |

IntegratorName |

Remarks

This class is no longer serializable. Instead, simply serialize the function
pointed to by this class.

See Also