Public Member Functions | Static Public Member Functions | Static Private Attributes

jscicalc.pobject.Factorial Class Reference

Factorial operation. More...

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

List of all members.

Public Member Functions

 Factorial ()
 Constructor.
double function (double x)
 Calulate factorial of x.
OObject function (OObject x)
 Calulate factorial of x.
String[] name_array ()
 Array used to construct name() and shortName() String objects.
String shortName ()
 The short version of the name.

Static Public Member Functions

static void main (String args[])

Static Private Attributes

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

Detailed Description

Factorial operation.

Author:
J. D. Lamb
Version:
Revision:
1.5

Constructor & Destructor Documentation

jscicalc.pobject.Factorial.Factorial (  ) 

Constructor.

Sets a tooltip and shortcut.

References jscicalc.pobject.PObject.fshortcut, and jscicalc.pobject.PObject.ftooltip.

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


Member Function Documentation

double jscicalc.pobject.Factorial.function ( double  x  )  [virtual]

Calulate factorial of x.

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

Implements jscicalc.pobject.LFunction.

OObject jscicalc.pobject.Factorial.function ( OObject  x  )  [virtual]

Calulate factorial of x.

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

Implements jscicalc.pobject.LFunction.

References jscicalc.OObject.factorial().

static void jscicalc.pobject.Factorial.main ( String  args[]  )  [static]
String [] jscicalc.pobject.Factorial.name_array (  )  [virtual]

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

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Factorial.fname.

String jscicalc.pobject.Factorial.shortName (  ) 

The short version of the name.

Used for the key.

Returns:
short version of name.

Reimplemented from jscicalc.pobject.PObject.


Member Data Documentation

final String [] jscicalc.pobject.Factorial.fname = { "!" } [static, private]

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