A plot of the function f(x)=1-cos(x)
JXG.Options.axis.ticks.insertTicks = false;
JXG.Options.axis.ticks.majorHeight = 1;
JXG.Options.axis.ticks.ticksDistance = 2;
var board = JXG.JSXGraph.initBoard('box1', {
boundingbox: [-10, 10, 10, -10],showcopyright: false,showNavigation: false,axis: false
});
var axy = board.create('axis',[[0,-2],[0,2]],{ticks:{
label:{offset:[ 10,10],color:'blue'},
scale: 1,
majorHeight: 6
} });
var axx = board.create('axis',
[[0,0],[10,0]], {
needsRegularUpdate: false,
ticks:{
label:{offset:[-10,-10],color:'blue'},
scale: Math.PI,
scaleSymbol: 'π'
}
}
);
var f1 = board.create('plot', ['(2)'],{dash:2});
board.create('functiongraph', [function(t){ return 1-Math.cos(t); },-4*Math.PI, 4*Math.PI],{strokeColor: "blue",strokewidth:2});
-
Triangle posted 1 year ago