Difference between revisions of "N-th root"

From JSXGraph Wiki
Jump to navigationJump to search
Line 7: Line 7:
  
 
var plot1 = board.create('functiongraph', ["nthroot(x, 3)"], {withLabel: true, name:'nthroot(x,3)'});
 
var plot1 = board.create('functiongraph', ["nthroot(x, 3)"], {withLabel: true, name:'nthroot(x,3)'});
var plot2 = board.create('functiongraph', ["cbrt(x) + 1"], {withLabel: true, name:'cbrt(x)+1'});
+
var plot2 = board.create('functiongraph', ["cbrt(x) + 1"], {withLabel: true, name:'cbrt(x)+1', strokeColor: 'black'});
var plot3 = board.create('functiongraph', [(x) => Math.pow(1.3, x) - 1], {strokeColor: 'red', withLabel: true, name:'Math.pow(x, 1/3) - 1'});
+
var plot3 = board.create('functiongraph', [(x) => Math.pow(x, 1/3) - 1], {withLabel: true, name:'Math.pow(x, 1/3) - 1', strokeColor: 'red'});
var plot4 = board.create('functiongraph', [(x) => JXG.Math.pow(1.3, x) - 2], {strokeColor: 'red', withLabel: true, name:'JXG.Math.pow(x, 1/3) - 2'});
+
</jsxgraph>
  
 +
===The underlying JavaScript code===
 +
<source lang="javascript">
 +
</source>
  
</jsxgraph>
+
[[Category:Examples]]
 +
[[Category:Calculus]]

Revision as of 13:45, 2 April 2020

The underlying JavaScript code