Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
procedure main()
|
||||
every put(x := [], 1 to 10)
|
||||
writes("x := [ "); every writes(!x," "); write("]")
|
||||
write("Quadratic mean:",q := qmean!x)
|
||||
end
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
procedure qmean(L[]) #: quadratic mean
|
||||
local m
|
||||
if *L = 0 then fail
|
||||
every (m := 0.0) +:= !L^2
|
||||
return sqrt(m / *L)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue