Public Member Functions

jscicalc.pobject.DFunction Class Reference

A function such as Power can act on two values, one left and one right of the symbol. More...

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

List of all members.

Public Member Functions

abstract double function (double x, double y)
 This function carries out an operation like Power.
abstract OObject function (OObject x, OObject y)
 This function carries out an operation like Power.

Detailed Description

A function such as Power can act on two values, one left and one right of the symbol.

This class specifies what is needed for a DFunction 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.DFunction.function ( double  x,
double  y 
) [pure virtual]

This function carries out an operation like Power.

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

Implemented in jscicalc.pobject.Combination, jscicalc.pobject.E, jscicalc.pobject.Permutation, jscicalc.pobject.Power, and jscicalc.pobject.Root.

Referenced by jscicalc.Parser.convertDFunctions().

abstract OObject jscicalc.pobject.DFunction.function ( OObject  x,
OObject  y 
) [pure virtual]

This function carries out an operation like Power.

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

Implemented in jscicalc.pobject.Combination, jscicalc.pobject.E, jscicalc.pobject.Permutation, jscicalc.pobject.Power, and jscicalc.pobject.Root.


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