rsa_workbench/pow_digits
2012-02-14 18:45:18 +00:00

11 lines
184 B
Bash
Executable File

#!/bin/bash
# R.P. Clark : 10APR2004
#
# Takes two args, c and d.
# returns approx number of decimal
# digits that c^d would cause.
echo "(l($1)*$2)/l(10)" | bc -l | sed 's/\..*//'