# Difference between revisions of "Plot data with slider"

From JSXGraph Wiki

A WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

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'}); | ||