ksphere←{               ⍝ Surface area of k-sphere.
    n←⍺+1               ⍝ dimension of enclosed k-ball.
    pi(○1)*n÷2         ⍝ power of pi.
    n×(⍵*⍺)×pi÷!n÷2     ⍝ k-sphere surface area.
}
code_colours

test script

Back to: notes

Back to: Workspaces