JSXGraph logo
JSXGraph
JSXGraph share

Share

Multiplication Parabola
QR code
<iframe 
    src="http://jsxgraph.org/share/iframe/multiplication-parabola" 
    style="border: 1px solid black; overflow: hidden; width: 550px; aspect-ratio: 55 / 65;" 
    name="JSXGraph example: Multiplication Parabola" 
    allowfullscreen
></iframe>
This code has to
<div id="board-0-wrapper" class="jxgbox-wrapper " style="width: 100%; ">
   <div id="board-0" class="jxgbox" style="aspect-ratio: 1 / 1; width: 100%;" data-ar="1 / 1"></div>
</div>

<script type = "text/javascript"> 
    /*
    This example is licensed under a 
    Creative Commons Attribution ShareAlike 4.0 International License.
    https://creativecommons.org/licenses/by-sa/4.0/
    
    Please note you have to mention 
    The Center of Mobile Learning with Digital Technology
    in the credits.
    */
    
    const BOARDID = 'board-0';

    var board = JXG.JSXGraph.initBoard(BOARDID, {axis:true, boundingbox: [-4, 11, 4, -1], keepaspectratio: true});
    var f = board.create('functiongraph',[function(x){return x*x;}],{strokeColor:'black',highlightStrokeColor:'black'});
    var a = board.create('glider',[-2,4,f]);
    var b = board.create('glider',[3,9,f]);
    var g = board.create('line',[a,b],{straightFirst:false,straightLast:false});
    var p = board.create('point',[function(){return 0.0;},function(){return -a.X()*b.X();}],{fixed:true});
    var t = board.create('text',[-1.5,9,function(){ return '-X(A)*X(B) = '+a.X().toFixed(2)+'*'+b.X().toFixed(2)+' = '+(-a.X()*b.X()).toFixed(2)+' = Y(C)';}]);
 </script> 
/*
This example is licensed under a 
Creative Commons Attribution ShareAlike 4.0 International License.
https://creativecommons.org/licenses/by-sa/4.0/

Please note you have to mention 
The Center of Mobile Learning with Digital Technology
in the credits.
*/

const BOARDID = 'your_div_id'; // Insert your id here!

var board = JXG.JSXGraph.initBoard(BOARDID, {axis:true, boundingbox: [-4, 11, 4, -1], keepaspectratio: true});
var f = board.create('functiongraph',[function(x){return x*x;}],{strokeColor:'black',highlightStrokeColor:'black'});
var a = board.create('glider',[-2,4,f]);
var b = board.create('glider',[3,9,f]);
var g = board.create('line',[a,b],{straightFirst:false,straightLast:false});
var p = board.create('point',[function(){return 0.0;},function(){return -a.X()*b.X();}],{fixed:true});
var t = board.create('text',[-1.5,9,function(){ return '-X(A)*X(B) = '+a.X().toFixed(2)+'*'+b.X().toFixed(2)+' = '+(-a.X()*b.X()).toFixed(2)+' = Y(C)';}]);
<jsxgraph width="100%" aspect-ratio="1 / 1" title="Multiplication Parabola" description="This construction was copied from JSXGraph examples database: BTW HERE SHOULD BE A GENERATED LINKuseGlobalJS="false">
   /*
   This example is licensed under a 
   Creative Commons Attribution ShareAlike 4.0 International License.
   https://creativecommons.org/licenses/by-sa/4.0/
   
   Please note you have to mention 
   The Center of Mobile Learning with Digital Technology
   in the credits.
   */
   
   var board = JXG.JSXGraph.initBoard(BOARDID, {axis:true, boundingbox: [-4, 11, 4, -1], keepaspectratio: true});
   var f = board.create('functiongraph',[function(x){return x*x;}],{strokeColor:'black',highlightStrokeColor:'black'});
   var a = board.create('glider',[-2,4,f]);
   var b = board.create('glider',[3,9,f]);
   var g = board.create('line',[a,b],{straightFirst:false,straightLast:false});
   var p = board.create('point',[function(){return 0.0;},function(){return -a.X()*b.X();}],{fixed:true});
   var t = board.create('text',[-1.5,9,function(){ return '-X(A)*X(B) = '+a.X().toFixed(2)+'*'+b.X().toFixed(2)+' = '+(-a.X()*b.X()).toFixed(2)+' = Y(C)';}]);
</jsxgraph>

Multiplication Parabola

This example plots the parabola $f(x)=x^2$ with two movable gliders A and B. A line connects them, and a fixed point C is defined from their x-coordinates. A dynamic text displays the relation $-X(A)\cdot X(B)=Y(C)$, linking geometry with algebra. **AI generated desctiption**
// Define the id of your board in BOARDID

var board = JXG.JSXGraph.initBoard(BOARDID, {axis:true, boundingbox: [-4, 11, 4, -1], keepaspectratio: true});
var f = board.create('functiongraph',[function(x){return x*x;}],{strokeColor:'black',highlightStrokeColor:'black'});
var a = board.create('glider',[-2,4,f]);
var b = board.create('glider',[3,9,f]);
var g = board.create('line',[a,b],{straightFirst:false,straightLast:false});
var p = board.create('point',[function(){return 0.0;},function(){return -a.X()*b.X();}],{fixed:true});
var t = board.create('text',[-1.5,9,function(){ return '-X(A)*X(B) = '+a.X().toFixed(2)+'*'+b.X().toFixed(2)+' = '+(-a.X()*b.X()).toFixed(2)+' = Y(C)';}]);

license

This example is licensed under a Creative Commons Attribution ShareAlike 4.0 International License.
Please note you have to mention The Center of Mobile Learning with Digital Technology in the credits.