Difference between revisions of "Affine normalform of parabola"

From JSXGraph Wiki
Jump to navigationJump to search
Line 8: Line 8:
  
 
var a = board.create('slider', [[3,4],  [6,4],  [-4, 1, 4]], {name: 'a'});
 
var a = board.create('slider', [[3,4],  [6,4],  [-4, 1, 4]], {name: 'a'});
var b = board.create('slider', [[3,3.5],[6,3.5], [-4, 1, 4]], {name: 'b'});
+
var b = board.create('slider', [[3,3.5],[6,3.5], [-4, 0, 4]], {name: 'b'});
var c = board.create('slider', [[3,3],  [6,3],  [-4, 1, 4]], {name: 'c'});
+
var c = board.create('slider', [[3,3],  [6,3],  [-4, 0, 4]], {name: 'c'});
 
var d = board.create('slider', [[3,2.5],[6,2.5], [-4, 1, 4]], {name: 'd'});
 
var d = board.create('slider', [[3,2.5],[6,2.5], [-4, 1, 4]], {name: 'd'});
  
Line 16: Line 16:
  
 
var y = board.create('point', [
 
var y = board.create('point', [
             () => x.X() + 2* x.Y() + 1,
+
             () => a.Value() * x.X() + b.Value() * x.Y(),
             () => x.X() -    x.Y()
+
             () => c.Value() * x.X() + c.Value() * x.Y()
 
         ], {name: 'y'});
 
         ], {name: 'y'});
  

Revision as of 20:43, 6 June 2021

The underlying JavaScript code