org.opensourcephysics.sip.ch11
Class LagrangeInterpolatorApp

java.lang.Object
  extended by org.opensourcephysics.controls.AbstractCalculation
      extended by org.opensourcephysics.sip.ch11.LagrangeInterpolatorApp
All Implemented Interfaces:
Calculation

public class LagrangeInterpolatorApp
extends AbstractCalculation

LagrangeInterpolatorApp implements a visualization of Lagrange interpolating polynomials.


Field Summary
 
Fields inherited from class org.opensourcephysics.controls.AbstractCalculation
control, decimalFormat, mainFrame
 
Constructor Summary
LagrangeInterpolatorApp()
           
 
Method Summary
 void calculate()
          Calculates and displays the Lagrange interpolating polynomial.
static void main(java.lang.String[] args)
          Starts the Java applicaiton.
 void reset()
          Resets the calculations's parameters and does the calculation.
 
Methods inherited from class org.opensourcephysics.controls.AbstractCalculation
addChildFrame, clearChildFrames, getChildFrames, getLoader, getMainFrame, getOSPApp, resetCalculation, setControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LagrangeInterpolatorApp

public LagrangeInterpolatorApp()
Method Detail

reset

public void reset()
Resets the calculations's parameters and does the calculation.

Overrides:
reset in class AbstractCalculation

calculate

public void calculate()
Calculates and displays the Lagrange interpolating polynomial.

Specified by:
calculate in interface Calculation
Specified by:
calculate in class AbstractCalculation

main

public static void main(java.lang.String[] args)
Starts the Java applicaiton.

Parameters:
args - String[] command line parameters