Live data from Hacker News

Show HN: Insect – a high-precision scientific calculator with physical units

insect.sh

31–40 of 205 posts

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#31
post #3

This is pretty cool, it's one of the rare applications I've used where the things I've tried "just work". For example "10 kg to g", "c", "c to km s^(-1)", "c to km/s" all work intuitively. It's great it works at the command line too. Something I wish I'd had when I was studying Physics.

All of these things work in Google, btw. Google has one of the best unit conversion tools, and it's built into the search.

You can convert 100m to femtoparsecs, for example.

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#32

Looks really nice! ≫ exp(2*kg/s) exp(2 × (kg / s)) Conversion error: Cannot convert quantity of unit kg/s to a scalar Excellent! Is there any way I can save a list of variables to file and then reload them? I also would like to vote for supporting imaginary numbers (Issue #47).

Great work indeed. I'd also love to see support for complex numbers. A big differentiator over other calculators.

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#33
post #30

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…

For what it's worth, it works on google.

https://www.google.com/search?q=5+l/100km+to+mpg&ie=UTF-8&oe...

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#34
post #26
post #17

Nice. This is a lot like (in looks and some functionality) the macOs app, 'Numi' (which I love) : https://numi.io/

Numi looks nice! I like the syntax I use the similar Soulver on my Mac and iOS devices.

Nice.

I probably mostly use Numi for unit conversions, but asked for in a 'human' way. eg "68 square meters in square feet"

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#36
post #7

I like this, but would really like a convert-to-base-units function. ≫ sqrt(1/(eps0 mu0)) ->m/s sqrt(1 / (eps0 × mu0)) -> m / s = 299833000 m/s ≫ sqrt(mu0/eps0) ->ohm sqrt(mu0 / eps0) -> Ω = 377.031 Ω

Thank you for the feedback! I'm open for any syntax suggestions.

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#38
post #33
post #30

Earlier quoted context omitted.

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…

For what it's worth, it works on google. https://www.google.com/search?q=5+l/100km+to+mpg&ie=UTF-8&oe...

Sure, because google isn't a calculator, it's an AI machine. Sometimes it guesses your intent right, sometimes it doesn't. That's fine for many tasks but not a great way to design a bridge or a steam boiler.

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#39
post #3

This is pretty cool, it's one of the rare applications I've used where the things I've tried "just work". For example "10 kg to g", "c", "c to km s^(-1)", "c to km/s" all work intuitively. It's great it works at the command line too. Something I wish I'd had when I was studying Physics.

GNU units(1)

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#40

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⁻²)

The dimensionality for your query is wrong. If you fix that it works just fine:

    ≫ 100km/7.8L -> miles / gal
      100 km / 7.8 L -> mi / gal
       = 30.1557 mi/gal
Post reply on HN