Class TMathematicalFunction

DescriptionHierarchyFieldsMethodsProperties

Unit

MathematicalFunctions

Declaration

type TMathematicalFunction = class(TTenaciousObject)

Description

Abstract base class for mathematical functions (returning a scalar value). Descendant classes must implement all virtual (and abstract) methods introduced in this class. See TPolynomial for a concrete descendant of TMathematicalFunction.

Hierarchy

TMathematicalFunction > TTenaciousObject > TPersistent

Methods

Overview

Public constructor Create; override;
Public constructor CreateAndSet(MathematicalFunction: TMathematicalFunction); virtual;
Public destructor Destroy; override;
Public function Evaluate(Variables: TVector): real; virtual; abstract;
Public procedure LoadFromDefinition(ObjDef: TObjectDefinition); virtual;

Description

Public constructor Create; override;

Constructor.

Public constructor CreateAndSet(MathematicalFunction: TMathematicalFunction); virtual;

Copy constructor.

parameters
MathematicalFunction
is the function to be copied.
Public destructor Destroy; override;

Destructor.

Public function Evaluate(Variables: TVector): real; virtual; abstract;

Abstract function that should return the value of the function (a scalar). Evaluate needs to be implemented in all descendant classes.

parameters
Variables
is a vector containing the function's arguments.
Public procedure LoadFromDefinition(ObjDef: TObjectDefinition); virtual;

Procedure for processing the definition of a mathematical function (as parsed from a definition text file).

parameters
ObjDef
contains the information parsed from a definition file.

Generated by PasDoc 0.8.8.3 on 2005-05-28 08:13:49