Home»Documentation»Mathematics Library User's Guide»Curves and Interpolation»Comparing Curve classes and delegates

## Comparing Curve classes and delegates | Extreme Optimization Numerical Libraries for .NET Professional |

The classes that inherit from
Curve
on the one hand, and the
Func

A Curve object represents a function in the mathematical sense. Very often, a specific type of function has special properties that enable many calculations to be performed more efficiently. For example: polynomials are easy to integrate and differentiate. To use a numerical integration algorithm for polynomials would be inefficient.

A Func

In other words: a
Curve
object focuses on the mathematical function as a mathematical object,
and the specific mathematical properties and relationships
of a particular type of curve.
A Func

In summary:

If you work with a mathematical function for which a specialized Curve type exists, it is usually better to use the Curve type.

In other situations it is more of a trade-off between the simplicity of the direct abstraction of a mathematical function versus the degree of control you have over the calculation of derivatives, integrals and zeros.

Copyright Â© 2004-2023,
Extreme Optimization. All rights reserved.

*Extreme Optimization,* *Complexity made simple*, *M#*, and *M
Sharp* are trademarks of ExoAnalytics Inc.

*Microsoft*, *Visual C#, Visual Basic, Visual Studio*, *Visual
Studio.NET*, and the *Optimized for Visual Studio* logo

are
registered trademarks of Microsoft Corporation.