rsa_workbench/pow_digits

11 lines
184 B
Plaintext
Raw Permalink Normal View History

2012-02-14 18:45:18 +00:00
#!/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/\..*//'