com.numobjects.mathbeans
Class CalcSolveSet

com.numobjects.mathbeans.CalcSolveSet

public class CalcSolveSet
implements java.io.Serializable

Calc set with equation solving capabilities. Equations are solved numerically on the specified interval. At most one root is sought even if there are many. The component provides the possibility to choose the independent variable, its range, the target function and its value. Expressions corresponding to the functions are set by the same rules as for the CalcSet.

See Also:
CalcSet, CalcGraphSet, Serialized Form

Constructor Summary
CalcSolveSet()
          Constructor
CalcSolveSet(java.lang.String formulae, java.awt.Color c)
          Constructor
 
Method Summary
 CalcSet getCalculator()
          Gets the calculator panel
 void getColors(java.awt.Color[] cc)
          Gets base colors from the calculator, solver and control panels
 com.numobjects.beans.ControlPanel getControl()
          Gets the control panel
 java.lang.String getFormulae()
          Gets formulae
 int getPrecision()
          Gets precision
 int getRounding()
          Gets rounding
 com.numobjects.mathbeans.SolveSet getSolver()
          Gets the solver panel
 void getValues(java.lang.String[][] s)
          Gets the values from the calculator, solver and control panels
 void setColors(java.awt.Color[] cc)
          Sets base colors for the calculator, solver and control panels
 void setFormulae(java.lang.String formulae)
          Sets formulae
 void setPrecision(int value)
          Sets precision (the number of significant digits in the calculation); range 1 - 15, default precision is 6
 void setRounding(int value)
          Sets rounding (the number of digits displayed after the decimal dot); range -1 - 15, default rounding is -1 (no rounding)
 void setValues(java.lang.String[][] s)
          Sets the values for the calculator, solver and control panels
 

Constructor Detail

CalcSolveSet

public CalcSolveSet()
Constructor

CalcSolveSet

public CalcSolveSet(java.lang.String formulae,
                    java.awt.Color c)
Constructor
Parameters:
formulae - a set of formulas
c - base color
Method Detail

setFormulae

public void setFormulae(java.lang.String formulae)
Sets formulae
Parameters:
formulae - a string representing a set of formulae (semicolon delimited)

getFormulae

public java.lang.String getFormulae()
Gets formulae
Returns:
a string representing the formulae

setPrecision

public void setPrecision(int value)
Sets precision (the number of significant digits in the calculation); range 1 - 15, default precision is 6
Parameters:
value - precision to set

getPrecision

public int getPrecision()
Gets precision
Returns:
precision value (the number of significant digits in the calculation)

setRounding

public void setRounding(int value)
Sets rounding (the number of digits displayed after the decimal dot); range -1 - 15, default rounding is -1 (no rounding)
Parameters:
value - rounding

getRounding

public int getRounding()
Gets rounding
Returns:
rounding value (the number of digits displayed after the decimal dot)

getCalculator

public CalcSet getCalculator()
Gets the calculator panel
Returns:
calculator panel

getSolver

public com.numobjects.mathbeans.SolveSet getSolver()
Gets the solver panel
Returns:
solver panel

getControl

public com.numobjects.beans.ControlPanel getControl()
Gets the control panel
Returns:
control panel

setColors

public void setColors(java.awt.Color[] cc)
Sets base colors for the calculator, solver and control panels
Parameters:
cc - an array of colors (must have length at least 3)

getColors

public void getColors(java.awt.Color[] cc)
Gets base colors from the calculator, solver and control panels
Parameters:
cc - an array of colors (must have length at least 3)

getValues

public void getValues(java.lang.String[][] s)
Gets the values from the calculator, solver and control panels
Parameters:
s - a two-dimensional array consisting of 3 arrays of values

setValues

public void setValues(java.lang.String[][] s)
Sets the values for the calculator, solver and control panels
Parameters:
s - a two-dimensional array consisting of 3 arrays of values