Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh functions, bicycle tire and gas law (PV = nRT)



Some interesting data from this program [1], especially
the meagre improvements from switching from 23 to 25 -
not even 3% more air!

# MTB twenty-niner, 57-622 65 PSI
# $ bike-tire-air 57 622 65
# $ V = 544 cm3
# $ 0.100902 moles of air gas

# road bike, maximum PSI, 23-622 145 PSI
# $ bike-tire-air 23 622 145
# $ V = 65 cm3
# $ 0.026895 moles of air gas
# (/ 0.026895 0.100902) ; 26% of MTB tire air

# road bike, realistic PSI for ~80 kg rider, 23-622 115 PSI
# $ bike-tire-air 23 622 115
# V = 65 cm3
# 0.021330 moles of air gas
# (/ 0.021330 0.100902) ; 21%

# road bike: is it worth upgrading from 23 mm to 25 mm?
# $ bike-tire-air 23 622 115
# V = 65 cm3
# 0.021330 moles of air gas
# $ bike-tire-air 25 622 100
# V = 77 cm3
# 0.021972 moles of air gas
# (- 100 (* 100 (/ 0.021330 0.021972))) ; 2.9% improvement! :O

# budget tires
# $ bike-tire-air 28 622 85
# V = 97 cm3
# 0.023528 moles of air gas
# (/ 0.023528 0.100902) ; 23%


[1] https://dataswamp.org/~incal/conf/.zsh/air

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal



Messages sorted by: Reverse Date, Date, Thread, Author