Plot data with slider: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 26: | Line 26: | ||
var p = brd2.create('point', [ | var p = brd2.create('point', [ | ||
function() { return mu.Value();}, | function() { return mu.Value();}, | ||
function() { return | function() { | ||
{trace: true}); | var i = 0; len = plot.dataY.length, s = 0; | ||
for (i = 0; i < len; i++) { | |||
s += plot.dataY[i] * plot.dataY[i]; | |||
} | |||
return Math.sqrt(s); }], | |||
{trace: true, name:'||u||_2'}); | |||