Public Member Functions

jscicalc.pobject.LFunction Class Reference

A function such as Square acts the value on its left. More...

Collaboration diagram for jscicalc.pobject.LFunction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

abstract double function (double x)
 This function carries out an operation like Square.
abstract OObject function (OObject x)
 This function carries out an operation like Square.

Detailed Description

A function such as Square acts the value on its left.

This class specifies what is needed for a LFunction and allows Parser to handle a DFunction without knowing the exact type.

See also:
Parser
Author:
J. D. Lamb
Version:
Revision:
1.4

Member Function Documentation

abstract double jscicalc.pobject.LFunction.function ( double  x  )  [pure virtual]

This function carries out an operation like Square.

Parameters:
x The first value (left of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.SFunction.

Implemented in jscicalc.pobject.Cube, jscicalc.pobject.Factorial, jscicalc.pobject.Inverse, and jscicalc.pobject.Square.

Referenced by jscicalc.Parser.convertLFunctions().

abstract OObject jscicalc.pobject.LFunction.function ( OObject  x  )  [pure virtual]

This function carries out an operation like Square.

Parameters:
x The first value (left of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.SFunction.

Implemented in jscicalc.pobject.Cube, jscicalc.pobject.Factorial, jscicalc.pobject.Inverse, and jscicalc.pobject.Square.


The documentation for this class was generated from the following file: