<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.6/jsxgraphcore.js"</script>--
You received this message because you are subscribed to a topic in the Google Groups "JSXGraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jsxgraph/ZZ9_HLZTkw8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jsxgraph+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<html>
<head>
<script type="text/javascript" src="https://cdn.rawgit.com/mathjax/MathJax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.7/jsxgraphcore.js"></script>
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.7/jsxgraph.css"></head>
<body>
<div id="jxgbox" class="jxgbox" style="width:600px; height:600px; border:1px solid black; margin:50px 20px 100px 200px;"></div>
<script type="text/javascript">
(function() {
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-5, 6, 6, -6], axis:true});
var a = board.create('slider', [[-4, -4.5], [4, -4.5], [-4, 1, 4]], {snapWidth:1, precision: 0, name: 'a' });
var b = board.create('slider', [[-4, -5], [4, -5], [-4, 0, 4]], {snapWidth:1, precision: 0, name: 'b' });
var c = board.create('slider', [[-4, -5.5], [4, -5.5], [-4, 0, 4]], {snapWidth:1, precision: 0, name: 'c' });
var f = board.create('functiongraph', [
function (x) {
return a.Value() * Math.pow(x, 2) + b.Value() * x + c.Value();
}, -6, 6 ]);
var text1 = board.create('text', [1, 4, '$$\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}$$'], {fontsize: 20,fixed: true, parse: false, useMathJax:true});
var text2 = board.create('text', [-3, 4, function () {
var aS ="",bS="",cS="";
if(a.Value() == 1)
aS = "x^2";
else if(a.Value() == -1)
aS = "-x^2";
else if(a.Value() === 0)
aS = "";
else
aS = a.Value() + "x^2";
if(b.Value() == 1)
bS = "+x";
else if(b.Value() == -1)
bS = "-x";
else if(b.Value() === 0)
bS = "";
else if(b.Value() > 1)
bS = "+"+b.Value() + "x";
else
bS = b.Value() + "x";
if(c.Value() > 0)
cS = "+"+c.Value();
else if(c.Value() === 0)
cS = "";
else
cS = c.Value();
if(a.Value()===0 && b.Value()===0 && c.Value()===0)
aS = "0";
return '$$y=' + aS + bS + cS + '$$'
}], {
fontsize: 20,
layer: 7,
fixed: true,
parse: false,
useMathJax:true
});
})();
</script>
</body>
</html>
| ||||||
--
You received this message because you are subscribed to a topic in the Google Groups "JSXGraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jsxgraph/ZZ9_HLZTkw8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jsxgraph+u...@googlegroups.com.
To post to this group, send email to jsxg...@googlegroups.com.
Visit this group at https://groups.google.com/group/jsxgraph.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsxgraph/6e22e62c-a999-42e4-a5e0-b2b706a7f6e6%40googlegroups.com.
| ||||||
--
You received this message because you are subscribed to a topic in the Google Groups "JSXGraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jsxgraph/ZZ9_HLZTkw8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jsxgraph+u...@googlegroups.com.
To post to this group, send email to jsxg...@googlegroups.com.
Visit this group at https://groups.google.com/group/jsxgraph.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsxgraph/47414483-5481-4cc7-aeda-e47cab3b1690%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

<input type="range" min="-10" max="10" value="2" id="mySlider" oninput="updateJSXGraph();">
<div id="jxgbox" class="jxgbox" style="width:500px; height:500px"></div>
const board = JXG.JSXGraph.initBoard('jxgbox', {
boundingbox: [-5, 5, 5, -5],
axis: true
});
var slider = document.getElementById('mySlider');
var plot = board.create('functiongraph', [
(x) => Math.pow(x, slider.value)
]);
var txt = board.create('text', [3, 3, function() {
return 'x<sup>' + slider.value + '</sup>';
}], {fontSize: 32});
updateJSXGraph = function() {
board.update();
};
|
|
Thank you so much.
![]()
![]()
![]()
![]()
Renju Soman
Digital Content Producer
Alef Education, Masdar City, P.O. Box 112230, Abu Dhabi, UAE
Telephone: +971 2 305 2400
Direct Line: +971 5 651 54568
Facsimile: +971 2 626 8448
re...@alefeducation.com
www.alefeducation.com
--
You received this message because you are subscribed to a topic in the Google Groups "JSXGraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jsxgraph/ZZ9_HLZTkw8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jsxgraph+u...@googlegroups.com.
To post to this group, send email to jsxg...@googlegroups.com.
Visit this group at https://groups.google.com/group/jsxgraph.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsxgraph/6045edcb-3c05-493a-8a60-5ca9847ad627%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

var points = [];
board.on('up', function(evt) {
var c = new JXG.Coords(JXG.COORDS_BY_SCREEN, board.getMousePosition(evt, 0), board);
points.push(board.create('point', c.usrCoords));
});
| ||||||
--
You received this message because you are subscribed to a topic in the Google Groups "JSXGraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jsxgraph/ZZ9_HLZTkw8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jsxgraph+u...@googlegroups.com.
To post to this group, send email to jsxg...@googlegroups.com.
Visit this group at https://groups.google.com/group/jsxgraph.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsxgraph/64c8f690-6afa-41da-a4c1-f3976589899b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
