It unfortunately fails my go-to test for these calculators: ≫ 7.8L/100km -> miles/gallon 7.8 L / 100 km -> mi / gal Conversion error: Cannot convert unit L/km (base units: m²) to unit mi/gal (base units: m⁻²)
That's because your unit conversion is invalid. It's entirely possible to construct an equation that computes mi/gal from L/km (or from gal/mi for that matter), but the dimmensionalty of the two numbers clearly disagree. Yes, you can introduce scenarios like yours where "any human" would know what the intended meaning of the question is, but mathematically speaking it's incorrect and encouraging a calculator to perfo…
Show HN: Insect – a high-precision scientific calculator with physical units
41–50 of 205 posts
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#42 Meaning of life
Meaning × of × life
Unknown identifier: MeaningRe: Show HN: Insect – a high-precision scientific calculator with physical units
#43Looks pretty nice, but no light years? No attoparsecs? You don't even have hogsheads or fortnights!!!!!1! Still, it's pretty good.
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#44Fails at the first fundamental test: Meaning of life Meaning × of × life Unknown identifier: Meaning
Quick workaround:
≫ Meaning = 6
≫ of = 1
≫ life = 7
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#45Hmm, I find the auto-associativity to be a bit weird for example: ≫ 1/12 c 1 / (12 × c) = 2.7797e-10 s/m
1/4 s - > (1/4) s
1 m / 4 s - > (1 m) / (4 s)
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#46Earlier quoted context omitted.
All of these things work in Google, btw. Google has one of the best unit conversion tools, and it's built into the search.
I've always been frustrated by how Google's unit conversion doesn't integrate well with its calculator.
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#47Re: Show HN: Insect – a high-precision scientific calculator with physical units
#48Hi HN! This has been posted a few months ago (by someone else), but it wasn't really finished back then. The feedback I got here last time has helped a lot to improve all sorts of things. Looking forward to your comments! Old discussion: https://news.ycombinator.com/item?id=13909631
Very well polished. Congrats on finishing it! I have only one minor issue: the REPL scrolling conflicts with the default scrolling acceleration on macOS. So just a very small movement on the trackpad and it scrolls all the way up or down. I believe this is due the "jquery-mousewheel" plugin [1]. [1]: https://github.com/jquery/jquery-mousewheel/issues/36
I'll look into this. Thank you for the reference.
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#49 ≫ 1 Pa * 2 m^2 / N
1 Pa × (2 × m^2 / N)
= 2
but doesn't automatically convert a result to N? ≫ 1 Pa * 2 m^2
1 Pa × 2 × m^2
= 2 m²·Pa
Same with W, J, s and all their relations.