3 ms·
> Curiously, I'd say 90% of the time I use Google is for math. If I'm typing a complex math expression (especially with units), Google tends to do much better t
by acidburnNSA 6y ago
> Curiously, I'd say 90% of the time I use Google is for math. If I'm typing a complex math expression (especially with units), Google tends to do much better than DDG.
I used to use google for this too, until I discovered GNU units [1]. GNU units is vastly superior to Google for complex formula and runs quietly in my command line.
Some examples:
Q: What's 72°F in °C?
A: $ units "tempF(72)" "tempC"
22.2
Q: How many teaspoons are in a tablespoon?
A: $ units "1 tbsp" tsp
3
Q: What is the total energy content of 1 kg or uranium, burned completely in a breeder reactor?
A: $ units "1 kg /(238 g/mole) * 200 MeV * 6.022e23 / mole" "MW*days"
938 Megawatt-days
Q: How many femtobarns are in a square teraparsec?
A: $ units "teraparsec^2" "femtobarn"
9.5e99 (very close to a google)
Q: How many hectares are there in a baker's dozen of mm^2?
A: $ units "10 bakersdozen mm^2" "hectares"
1.3e-08
[1] https://www.gnu.org/software/units/manual/units.html https://www.gnu.org/software/units/manual/units.html
- abstractbarista 6y agoJust installed it. This is really cool! Thanks for enlightening.