Skip to content

quadriaticMean

Subhajit Sahu edited this page Aug 8, 2022 · 1 revision

Find the quadriatic mean of numbers.

Similar: arithmeticMean, geometricMean, harmonicMean, quadriaticMean, cubicMean.


function quadriaticMean(...xs)
// xs: a list of numbers

const xmath = require('extra-math');


xmath.quadriaticMean(1, 2);
// → 1.5811388300841898  (Math.sqrt(5/2))

xmath.quadriaticMean(1, 2, 3);
// → 2.160246899469287  (Math.sqrt(14/3))

xmath.quadriaticMean(1, 2, 3, 4);
// → 2.7386127875258306  (Math.sqrt(30/4))


References

Clone this wiki locally