Simple shell routine to calculate dpi
function calcdpi() { | |
echo "sqrt($1^2+$2^2)/$3" | bc | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
function calcdpi() { | |
echo "sqrt($1^2+$2^2)/$3" | bc | |
} |