jscicalc.pobject.AFunction Class Reference

Objects for addition and subtraction and also change of sign. More...

Inheritance diagram for jscicalc.pobject.AFunction:

jscicalc.pobject.PObject jscicalc.GObject jscicalc.pobject.Add jscicalc.pobject.Subtract
Collaboration diagram for jscicalc.pobject.AFunction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

abstract double function (double x, double y)
 This function carries out an operation like plus or minus.
abstract double function (double x)
 This function carries out a change of sign (or does nothing) (unary plus or unary minus).
abstract OObject function (OObject x, OObject y)
 This function carries out an operation like plus or minus.
abstract OObject function (OObject x)
 This function carries out a change of sign (or does nothing) (unary plus or unary minus).


Detailed Description

Objects for addition and subtraction and also change of sign.

The change of sign is eventually done in most cases by converting to Uplus or Uminus, though signs are handled directly for exponents, which must be integer.

See also:
Uplus

Uminus

Author:
J. D. Lamb
Version:
Revision
1.4

Member Function Documentation

abstract double jscicalc.pobject.AFunction.function ( double  x,
double  y 
) [pure virtual]

This function carries out an operation like plus or minus.

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.Add, and jscicalc.pobject.Subtract.

Referenced by jscicalc.Parser.convertAFunctions().

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

This function carries out a change of sign (or does nothing) (unary plus or unary minus).

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

Implemented in jscicalc.pobject.Add, and jscicalc.pobject.Subtract.

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

This function carries out an operation like plus or minus.

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.Add, and jscicalc.pobject.Subtract.

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

This function carries out a change of sign (or does nothing) (unary plus or unary minus).

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

Implemented in jscicalc.pobject.Add, and jscicalc.pobject.Subtract.


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

Generated on Sun Jun 1 08:58:15 2008 for Java Scientific Calculator by  doxygen 1.5.5