P-Norm: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 5: Line 5:
   function(t){
   function(t){
       var p = pNorm.Value();
       var p = pNorm.Value();
       return 2.0/Math.pow(
       return 2.0/Math.pow(Math.pow(Math.abs(Math.cos(t)),p)+
                Math.pow(Math.abs(Math.cos(t)),p)+
                 Math.pow(Math.abs(Math.sin(t)),p),1.0/p);
                 Math.pow(Math.abs(Math.sin(t)),p)),1.0/p
                );
   }
   }
   [0,0],  
   [0,0],  

Revision as of 20:33, 1 July 2010

1234−1−2−3−41234−1−2−3−4
a = 2.00

The underlying JavaScript code