Difference between revisions of "P-Norm"

From JSXGraph Wiki
Jump to: navigation, search
Line 4: Line 4:
 
graph = brd.create('curve', [
 
graph = brd.create('curve', [
 
   function(t){
 
   function(t){
      return 2.0;
 
 
       var p = pNorm.Value();
 
       var p = pNorm.Value();
 
       return 2.0/Math.pow(Math.pow(Math.abs(Math.cos(t)),p)+
 
       return 2.0/Math.pow(Math.pow(Math.abs(Math.cos(t)),p)+

Revision as of 22:38, 1 July 2010

The underlying JavaScript code