Rational functions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 14: Line 14:


         var p = [];
         var p = [];
        var q = [];
         p[0] = board.createElement('point', [-1,2], {style:6});
         p[0] = board.createElement('point', [-1,2], {style:6});
         p[1] = board.createElement('point', [3,-1], {style:6});
         p[1] = board.createElement('point', [3,-1], {style:6});
Line 46: Line 47:
         b1axisy2 = board2.createElement('axis', [[0,0], [0,1]], {});
         b1axisy2 = board2.createElement('axis', [[0,0], [0,1]], {});


        var q = [];
         q[0] = board2.createElement('point', [-1,2], {style:6});
         q[0] = board2.createElement('point', [-1,2], {style:6});
         q[1] = board2.createElement('point', [3,-1], {style:6});
         q[1] = board2.createElement('point', [3,-1], {style:6});
Line 53: Line 53:
                 var y = 0.0;
                 var y = 0.0;
                 var xc = [];
                 var xc = [];
                 for (i=0;i<p.length;i++) {
                 for (i=0;i<q.length;i++) {
                   xc[i] = q[i].X();
                   xc[i] = q[i].X();
                 }
                 }
                 for (i=0;i<p.length;i++) {
                 for (i=0;i<q.length;i++) {
                   var t = q[i].Y();
                   var t = q[i].Y();
                   for (var k=0;k<q.length;k++) {
                   for (var k=0;k<q.length;k++) {

Revision as of 13:21, 15 December 2008