jscicalc.pobject.Combination Class Reference

DFunction that calculates combinations. More...

Inheritance diagram for jscicalc.pobject.Combination:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Combination ()
 Constructor.
double function (double x, double y)
 Calculates the number of unordered ways to choose y objects from x.
OObject function (OObject x, OObject y)
 Calculates the number of unordered ways to choose y objects from 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 = { "<b>C</b>" }


Detailed Description

DFunction that calculates combinations.

Author:
J. D. Lamb
Version:
Revision
1.6

Constructor & Destructor Documentation

jscicalc.pobject.Combination.Combination (  ) 

Constructor.

Sets a tooltip and shortcut.

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

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


Member Function Documentation

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

Calculates the number of unordered ways to choose y objects from x.

Produces an error if this doesn’t make sense.

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.

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

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

Calculates the number of unordered ways to choose y objects from x.

Produces an error if this doesn’t make sense.

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.OObject.combination().

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

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

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Combination.fname.

String jscicalc.pobject.Combination.shortName (  ) 

The short version of the name.

Used for the key.

Returns:
short version of name.

Reimplemented from jscicalc.pobject.PObject.

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


Member Data Documentation

final String [] jscicalc.pobject.Combination.fname = { "<b>C</b>" } [static, private]


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

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