This is my most basic alias I've ever posted here, just returns the x-root of a number.
I know you can do it with $calc, but doing that is a little complicated and for some of us math idiots confusing, so this is just to make life a little easier.
Syntax is $root(number,root)
Example: $root(125,3) --- returns 5, because 53=125
alias root {
if ( !$1 ) || ( !$2 ) || ( $1 !isnum ) || ( $2 !isnum ) {
$iif($isid,return ERR_PARAMS,echo $colour(info) -a * Syntax: /root <number> <root>
}
$iif($isid,return $calc($1 ^ (1 / $2)),echo $colour(info) -a * $calc($1 ^ (1 / $2)))
}