root mean square of all values in the array If the array is empty, it returns 0

import { rootMeanSquare } from '@kitsuyui/mymath'
rootMeanSquare([1, 2, 3, 4]) // => 2.7386127875258306
  • Parameters

    • values: number[]

    Returns number