Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Superellipse/Lambdatalk/superellipse-1.lambdatalk
Normal file
11
Task/Superellipse/Lambdatalk/superellipse-1.lambdatalk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{def superellipse
|
||||
{def sgn {lambda {:n} {if {< :n 0} then - else +}}}
|
||||
|
||||
{lambda {:a :n :t}
|
||||
{let { {:a :a} {:n {/ 2 :n}}
|
||||
{:cost {cos {* {PI} :t}}}
|
||||
{:sint {sin {* {PI} :t}}}
|
||||
} {sgn :cost}{* :a {pow {abs :cost} :n}}
|
||||
{sgn :sint}{* :a {pow {abs :sint} :n}}
|
||||
}}}
|
||||
-> superellipse
|
||||
15
Task/Superellipse/Lambdatalk/superellipse-2.lambdatalk
Normal file
15
Task/Superellipse/Lambdatalk/superellipse-2.lambdatalk
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{{SVG 600 600}
|
||||
{g {AXES 600 600}
|
||||
{polyline
|
||||
{@ points="{S.map {superellipse 200 2.5} {S.serie -1 1.01 0.01}}"
|
||||
{stroke #f00 4}}}
|
||||
{polyline
|
||||
{@ points="{S.map {superellipse 200 0.5} {S.serie -1 1.01 0.01}}"
|
||||
{stroke #0f0 4}}}
|
||||
{polyline
|
||||
{@ points="{S.map {superellipse 200 1} {S.serie -1 1.01 0.01}}"
|
||||
{stroke #888 2}}}
|
||||
{polyline
|
||||
{@ points="{S.map {superellipse 200 2} {S.serie -1 1.01 0.01}}"
|
||||
{stroke #888 2}}}
|
||||
}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue