Live data from Hacker News

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

insect.sh

51–60 of 205 posts

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

#51
post #8

I tried to enter 3 5 which was interpreted as 3 * 5. Seems a bit risky to me :) Otherwise looks neat.

Thank you for the feedback. That is intentional. Whitespace (or even lack thereof, as in "2x") is implicit multiplication. Otherwise, you'd have to write multiplication signs everywhere:

  2*sin(5*cm/(2*m))

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

#52

Looks nice, but is there a reason it interprets m^2 * Pa correctly ≫ 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.

Thank you for the feedback!

Automatic simplification (as opposed to explicit conversion) is a complex topic. There are a few simplifications that are already applied, for example:

  20 L / m^2
   = 0.02 m
You are absolutely right, it'd be nice to have "Pa·m²" be converted to "N" automatically. I've been thinking about simply going through a list of simple, standardized units (SI units like Newton) while trying to convert the result into these simple units. However, notice that this is not always what you want. If someone likes to compute in imperial units, we would rather leave all quantities in imperial units.

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

#54

Shameless plug for my http://dedo.io/ , which is similar to this this, but with less features, more money-oriented and support for any custom units, e.g. if bag_weight = 12 kg / bag, then 10 bags * bag_weight is 120kg

Here are some more:

http://mathnotepad.com https://arve0.github.io/webcas/

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

#55
post #52

Looks nice, but is there a reason it interprets m^2 * Pa correctly ≫ 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.

Thank you for the feedback! Automatic simplification (as opposed to explicit conversion) is a complex topic. There are a few simplifications that are already applied, for example: 20 L / m^2 = 0.02 m You are absolutely right, it'd be nice to have "Pa·m²" be converted to "N" automatically. I've been thinking about simply going through a list of simple, standardized units (SI units like Newton) while trying to convert…

you could only apply simplifications that minimised the sum of the absolute value of all the unit exponents. that would be intuitively satisfying, and not require converting imperial to metric (which would leave the exponents unchanged)

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

#56

Sorry to be the party stopper for a really awesome tool, just wanted to let you know that you have a dead butterfly as a logo: http://emilydamstra.com/news/please-enough-dead-butterflies/

That looks like a living butterfly.

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

#57

Very nice! Any plans to add decibel/log-scale units? That would make this even handier.

Thank you! "bel" is already supported ("decibel" also, due to the handling of SI prefixes). Unfortunately, "dB" is parsed as "deci-byte". While this is not really a useful unit, this is on purpose (see https://github.com/sharkdp/insect/issues/67) in order to support "kB", "MB", etc. for "kilobyte", "megabyte", etc.

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

#59
post #43
post #10

Looks pretty nice, but no light years? No attoparsecs? You don't even have hogsheads or fortnights!!!!!1! Still, it's pretty good.

Thank you for the feedback. I'm always open for suggestions on new units ( https://github.com/sharkdp/purescript-quantities )!

Please see http://www.theregister.co.uk/Design/page/reg-standards-conve... :-)

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

#60
post #55
post #52

Earlier quoted context omitted.

Thank you for the feedback! Automatic simplification (as opposed to explicit conversion) is a complex topic. There are a few simplifications that are already applied, for example: 20 L / m^2 = 0.02 m You are absolutely right, it'd be nice to have "Pa·m²" be converted to "N" automatically. I've been thinking about simply going through a list of simple, standardized units (SI units like Newton) while trying to convert…

you could only apply simplifications that minimised the sum of the absolute value of all the unit exponents. that would be intuitively satisfying, and not require converting imperial to metric (which would leave the exponents unchanged)

Good suggestion, thank you! I was already thinking about some way to measure "perceived complexity" of a physical unit - this sounds like a very good try for such a heuristic.
Post reply on HN