# Difference between revisions of "P-Norm"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 5: | Line 5: | ||

function(t){ | function(t){ | ||

return 2.0; | return 2.0; | ||

− | } | + | var p = pNorm.Value(); |

+ | return 2.0/Math.pow(Math.pow(Math.abs(Math.cos(t)),p)+ | ||

+ | Math.pow(Math.abs(Math.sin(t)),p),1.0/p); | ||

+ | }, | ||

[0,0], | [0,0], | ||

0, Math.PI*2], | 0, Math.PI*2], |