Polynomials
by turtaniumx
HTML
<script src="https://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" href="https://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css">
<div id='box3' class='jxgbox'></div>
CSS
#box3 {
width:500px;
height:500px;
}
JavaScript
var brd = JXG.JSXGraph.initBoard('box3',
{axis: false,
boundingbox: [-6.5,300,6.5,-300],
//keepaspectratio: true,
zoom: {factorX: 1.25,factorY: 1.2,wheel: true,needshift: false},
//zoomX: 0.8,
//zoomY: 0.05,
pan: {needShift: false,needTwoFingers: true,enabled: true},
showCopyright:false
});
var a = brd.create('axis', [[0, 0], [1, 0]], {ticks: {scale: 1}});
var b = brd.create('axis', [[0, 0], [0, 1]], {ticks: {scale: 1}});
var f = brd.jc.snippet(
// the function term
'1/4*(x-6)^2*(x+8)^3',
// wrap a function around it
true,
// the parameters to the function
'x'
);
brd.create('plot', [f]);