Rational functions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 43: Line 43:
         board2 = JXG.JSXGraph.initBoard('box2', {originX: 150, originY: 200, unitX: 30, unitY: 25});
         board2 = JXG.JSXGraph.initBoard('box2', {originX: 150, originY: 200, unitX: 30, unitY: 25});
         // Axes
         // Axes
         b1axisx = board2.createElement('axis', [[0,0], [1,0]], {});
         b1axisx2 = board2.createElement('axis', [[0,0], [1,0]], {});
         b1axisy = board2.createElement('axis', [[0,0], [0,1]], {});
         b1axisy2 = board2.createElement('axis', [[0,0], [0,1]], {});


         var q = [];
         var q = [];
Line 67: Line 67:
                 return y;
                 return y;
             };
             };
         graph = board2.createElement('curve', ['x', polynomial2, 'x', -10, 10], {curveType:'graph'});
         graph2 = board2.createElement('curve', ['x', polynomial2, 'x', -10, 10], {curveType:'graph'});


         function addPoint2() {
         function addPoint2() {

Revision as of 13:20, 15 December 2008