Discontinuous derivative: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 4: Line 4:
var board = JXG.JSXGraph.initBoard('jxgbox', {axis:true, boundingbox:[-1/2,1/2,1/2,-1/2]});
var board = JXG.JSXGraph.initBoard('jxgbox', {axis:true, boundingbox:[-1/2,1/2,1/2,-1/2]});


var f = board.create('functiongraph', ["x^2*sin(1/x)"]);
var f = board.create('functiongraph', ["x^2*sin(1/x)"], {strokeWidth:2});
var g = board.create('functiongraph', ["2*sin(1/x) - cos(1/x)"]);
var g = board.create('functiongraph', ["2*sin(1/x) - cos(1/x)"], {strokeColor: 'red'});
</jsxgraph>
</jsxgraph>



Revision as of 08:53, 13 February 2019

Consider the function

The underlying JavaScript code