In article <[email hidden]>, "Fabrizio Mazzoleni"
Quoted message said:
"Tom Keats" <[email hidden]> wrote in message "]news:[email hidden]...
Quoted message said:
I'm really getting tired of computers and numbers.
That's nice to hear Tom, but here's a little eye opener for you recreational rider types.
Actually, my riding is more /practical/ than recreational.
Anyhow, I forgot Bourne Shell arithmetic is restricted to integers, and my average speeds are
mixed/rational. That's why 'expr' didn't like my syntax.
I grep'd them out of my journal with something like: $ egrep "A: " | cut -d " " -f 2 >> speeds.txt
to make a data file.
Then I added them up using bc: $ a=0 $ for i in `cat speeds.txt`
Quoted message said:do a=`echo "$a + $i" | bc` done
Finally, I divided the result by the number of lines in the data file, obtained from: wc -l
speeds.txt
So my "average average" speed, derived from 1 1/2 years of journalizing, is 16 km/h. That ranges
across a lot of short hops to the store, as well as some longer trips to North Delta and suchlike.
The actual numbers were 9701.0 / 591
for a 10 to 20 km out-&-back, I generally average about 18 - 20 km/h.
This morning, I averaged 16.3 coming home from Pauline's (a 5 km trip). But I was hauling a load of
glass cookware I'd left there over the months.
cheers, Tom
--
-- Powered by FreeBSD Above address is just a spam midden. I'm really at: tkeats [curlicue] vcn
[point] bc [point] ca