Skip to content

Instantly share code, notes, and snippets.

@gipi

gipi/gist:1289605

Created Oct 15, 2011
Embed
What would you like to do?
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