// this code is live, edit me! graph.add(function(x) { return x*x; }); graph.add(function(x) { return -Math.round(x*x); }); graph.add(function(x) { return x*x%x; }); function trekkie(x) { return x<0?x*x*x%x:0; } graph.add(trekkie);