Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,10 @@
movinavg(list,p)
Func
Local r, i, z
For i,1,dim(list)
max(i-p,0)→z
sum(mid(list,z+1,i-z))/(i-z)→r[i]
EndFor
r
EndFunc

View file

@ -0,0 +1,11 @@
movinav2(x_,v_)
Prgm
If getType(x_)="STR" Then
{}→list
v_→p
Return
EndIf
right(augment(list,{x_}),p)→list
sum(list)/dim(list)→#v_
EndPrgm