I need help with a problem to calculate the square average o
I need help with a problem to calculate the square average of any amount of numbers with MATLAB CODE.
Write a program that allows you to enter the user any number of numbers and calculate their quadratic mean. Present PrtScs and desktop tests when the user enters the numbers: 3, -2, 5, 7.
thanks a lot!
Solution
>>maple(\'means:=proc(C::set)
local h;
h:=sqrt(add(j^2,j=C)/nops(C));
\'quadmean=\'.h;
end;))))
>>pretty (sym(maple(\'means({3,-2,5,7})\')))
output:4.66369
