Differences between revisions 19 and 28 (spanning 9 versions)
Revision 19 as of 2007-11-08 03:58:20
Size: 1127
Editor: AlfonsoReyes
Comment:
Revision 28 as of 2009-08-23 19:35:25
Size: 1167
Editor: AlfonsoReyes
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||'''Java'''||'''Jython'''||
|| xCoord = Double[25] || xCoord = jarray.zeros(25, "d") ||


## ################################################
||<v>'''Java''' ||<v>'''Jython''' ||
## ################################################
||<^>xCoord = Double[25]||<^>xCoord = jarray.zer ||
## ################################################
|| || ||
## ################################################
|| || ||
## ################################################


## #########################################
||<v>'''Heading A'''||<v>'''Heading B''' ||
## #########################################
||<v>A1 ||<v>jdjdjd dkllklk dlklkl dlkdlkdldk kldkdl A1[[BR]] sslks New line [[BR]]dkdlkd dkdk ||
## #########################################
|| || ||
## #########################################
|| || ||
## #########################################
||'''Description''' ||'''In Java'''||'''In Jython'''||
||array of doubles || xCoord = Double[25] || xCoord = jarray.zeros(25, "d") ||
||Size of array || mx = data.length; || mx = len(data) ||
||array assignment || double re = reFun.evaluate(new double[] {data[i][j][0], data[i][j][1]}); || re = self.reFun.evaluate([data[i][j][0], data[i][j][1]]) ||
|| Declaring a class type || public class CalcComplexPlotApp implements Calculation { <br>
  private Control myControl; <br>
  private DrawingPanel drawingPanel = new DrawingPanel();
  private DrawingFrame drawingFrame = new DrawingFrame(drawingPanel);
  private GridPointData pointdata;
  private ComplexSurfacePlot plot;
  private MultiVarFunction reFun, imFun; || class CalcComplexPlotApp(Calculation):
    def __init__(self):
        self.myControl = Control
        self.drawingPanel = DrawingPanel()
        self.drawingFrame = DrawingFrame(self.drawingPanel)
        self.pointdata = GridPointData
        self.plot = ComplexSurfacePlot
        self.reFun = MultiVarFunction
        self.imFun = MultiVarFunction ||

Describe ComparisonJavaJython here.

Description

In Java

In Jython

array of doubles

xCoord = Double[25]

xCoord = jarray.zeros(25, "d")

Size of array

mx = data.length;

mx = len(data)

array assignment

double re = reFun.evaluate(new double[] {data[i][j][0], data[i][j][1]});

re = self.reFun.evaluate([data[i][j][0], data[i][j][1]])

|| Declaring a class type || public class CalcComplexPlotApp implements Calculation { <br>

ComparisonJavaJython (last edited 2009-08-23 20:01:21 by AlfonsoReyes)