APL, 24 bytes
{.5*⍨+/(2*⍨⍵-+/⍵÷≢⍵)÷≢⍵}
A little different approach than Dennis' Dyalog APL solution Dennis' Dyalog APL solution. This should work with any APL implementation.
This creates an unnamed monadic function that computes the vector (x - μ)2 as 2*⍨⍵-+/⍵÷≢⍵, divides this by N (÷≢⍵), takes the sum of this vector using +/, and then takes the square root (.5*⍨).
APL, 24 bytes
{.5*⍨+/(2*⍨⍵-+/⍵÷≢⍵)÷≢⍵}
A little different approach than Dennis' Dyalog APL solution. This should work with any APL implementation.
This creates an unnamed monadic function that computes the vector (x - μ)2 as 2*⍨⍵-+/⍵÷≢⍵, divides this by N (÷≢⍵), takes the sum of this vector using +/, and then takes the square root (.5*⍨).
APL, 24 bytes
{.5*⍨+/(2*⍨⍵-+/⍵÷≢⍵)÷≢⍵}
A little different approach than Dennis' Dyalog APL solution. This should work with any APL implementation.
This creates an unnamed monadic function that computes the vector (x - μ)2 as 2*⍨⍵-+/⍵÷≢⍵, divides this by N (÷≢⍵), takes the sum of this vector using +/, and then takes the square root (.5*⍨).
APL, 24 bytes
{.5*⍨+/(2*⍨⍵-+/⍵÷≢⍵)÷≢⍵}
A little different approach than Dennis' Dyalog APL solution. This should work with any APL implementation.
This creates an unnamed monadic function that computes the vector (x - μ)2 as 2*⍨⍵-+/⍵÷≢⍵, divides this by N (÷≢⍵), takes the sum of this vector using +/, and then takes the square root (.5*⍨).