#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.
#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.