Cumulative standard deviation: Difference between revisions
→{{header|PL/I}}: usage of hbound for simplicity
Walterpachl (talk | contribs) m (→{{header|PL/I}}: fix tag) |
PatGarrett (talk | contribs) (→{{header|PL/I}}: usage of hbound for simplicity) |
||
Line 1,935:
=={{header|PL/I}}==
<lang pli>*process source attributes xref;
stddev: proc
declare i fixed binary;▼
▲ stdev=std_dev(a,ap);
▲ put skip list ('Standard deviation', stdev);
▲ std_dev: procedure (A, ap) returns (float);
n=hbound(a,1);
▲ declare A(*) float, ap fixed binary nonassignable;
declare
do i
end;
end;
end;</lang>
{{out}}
|