jscicalc.pobject.E Class Reference

DFunction that allows scientific notation entry. More...

Inheritance diagram for jscicalc.pobject.E:

jscicalc.pobject.DFunction jscicalc.pobject.PObject jscicalc.GObject
Collaboration diagram for jscicalc.pobject.E:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 E ()
 Constructor.
double function (double x, double y)
 Calculates a double xey.
OObject function (OObject x, OObject y)
 Calculates a OObject xey.
String[] name_array ()
 Array used to construct name() and shortName() String objects.
int base ()
 Get the base used (always 10).
void base (int base)
 Set the base used (always set to 10 but obsolete).

Static Public Member Functions

static void main (String args[])

Private Attributes

int base
 The base used (10).

Static Private Attributes

static final String[] fname = { "e" }


Detailed Description

DFunction that allows scientific notation entry.

Probably now obsolete. It did allow expressions like 1e1.3, but was problematic because of rounding errors.

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

Constructor & Destructor Documentation

jscicalc.pobject.E.E (  ) 

Constructor.

Sets a tooltip and shortcut.

References jscicalc.pobject.E.base(), jscicalc.pobject.PObject.fshortcut, and jscicalc.pobject.PObject.ftooltip.

Referenced by jscicalc.pobject.E.main().


Member Function Documentation

double jscicalc.pobject.E.function ( double  x,
double  y 
) [virtual]

Calculates a double xey.

Obsolete.

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

Implements jscicalc.pobject.DFunction.

References jscicalc.pobject.E.base().

OObject jscicalc.pobject.E.function ( OObject  x,
OObject  y 
) [virtual]

Calculates a OObject xey.

Obsolete.

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

Implements jscicalc.pobject.DFunction.

References jscicalc.pobject.E.base(), and jscicalc.OObject.multiply().

String [] jscicalc.pobject.E.name_array (  )  [virtual]

Array used to construct name() and shortName() String objects.

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.E.fname.

static void jscicalc.pobject.E.main ( String  args[]  )  [static]

Get the base used (always 10).

Returns:
base

Referenced by jscicalc.pobject.E.E(), and jscicalc.pobject.E.function().

void jscicalc.pobject.E.base ( int  base  ) 

Set the base used (always set to 10 but obsolete).

Parameters:
base The new base (should be 10)


Member Data Documentation

int jscicalc.pobject.E.base [private]

The base used (10).

final String [] jscicalc.pobject.E.fname = { "e" } [static, private]


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

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