1#!/bin/sh 2# 3# Time the functions. 4# 5SYSBC=/usr/bin/bc 6if [ x$BC = x ] ; then 7 BC=../bc/bc 8fi 9for file in exp.b ln.b sine.b atan.b jn.b mul.b div.b raise.b sqrt.b 10do 11for prog in $BC $SYSBC $OTHERBC 12do 13echo Timing $file with $prog 14time $prog -l $file 15done 16done 17