Power Series for sine: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 3: Line 3:


<jsxgraph with="700" height="400">
<jsxgraph with="700" height="400">
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-7,3,7,-3]});
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-7,3,8,-3]});
var axx = brd.create('axis',[[0,0],[1,0]]);
var axx = brd.create('axis',[[0,0],[1,0]]);
var axy = brd.create('axis',[[0,0],[0,1]]);
var axy = brd.create('axis',[[0,0],[0,1]]);
Line 10: Line 10:
brd.create('functiongraph', [function(t){ return Math.sin(t); },-10, 10],{strokeColor: "#cccccc"});
brd.create('functiongraph', [function(t){ return Math.sin(t); },-10, 10],{strokeColor: "#cccccc"});
var s = brd.create('slider', [[0.75,-1.5],[5.75,-1.5],[0,0,10]], {name:'S',snapWidth:1});
var s = brd.create('slider', [[0.75,-1.5],[5.75,-1.5],[0,0,10]], {name:'S',snapWidth:1});
var x0 = brd.create('glider', [0,0,ax], {name:'x_0'});
var x0 = brd.create('glider', [0,0,axx], {name:'x_0'});
/*
/*
brd.create('functiongraph', [
brd.create('functiongraph', [

Revision as of 10:32, 28 May 2010

Power Series for Sine

[math]\displaystyle{ \sum_{k=0}^n (-1)^k\frac{1}{(2k+1)!}x^{2k+1} }[/math]