Skip to main content
1 of 2
Tom Carpenter
  • 4.3k
  • 13
  • 21

#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