Skip to main content
2 of 2
Commonmark migration

MATLAB, 10 bytes

@(a)a^2^.5

Pretty straight forward. We are allowed sqauare and square root, so the absolute value of a number (assuming it is not complex!) is simply square it then square root it.

Tom Carpenter
  • 4.3k
  • 13
  • 21