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.
Show HN: Insect – a high-precision scientific calculator with physical units
191–200 of 205 posts
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#192Nice, but sin (30 rad) sin × 30 rad Unknown identifier: sin Wouldn't it be great if software evaluated things, and if things didn't made sense, considered what the possible alternatives were, a bit like semantic checkers for spelling and grammar in text?
sin(30 rad) = -0.988032
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#193> high precision ≫ e*1e15 e × 1000000000000000 = 2718280000000000 Needs a bit of work, I think.
>>> tan(90 deg)
tan(90°)
= 14444300000000000
>>> tan(pi/2)
tan(pi / 2)
= -70710700000000000000
>>> tan(180 deg)
tan(180°)
= -1.38463e-16
tan(90°) and tan(π/2) should both be undefined, but in Insect, they a) have a value and b) are not even equal.Weirdly enough, cos(π) and cos(2π) are exactly -1 and 1.
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#194Earlier quoted context omitted.
I'd call them "MB (megabytes)" and "MMB" (marketing megabytes). Pretty clear.
"M" - "Mega" is an official general purpose SI prefix approved in 1960 which always stood for a decimal multiplier. Its common usage as a binary multiplier was limited to counting units of computer memory, and is purely an approximation to allow convenient speaking of, e.g., a megabyte of RAM instead of 1.048576 megabytes of RAM. Because it reflects the natural scale of physical memory. It is more properly referred t…
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#195Earlier quoted context omitted.
"M" - "Mega" is an official general purpose SI prefix approved in 1960 which always stood for a decimal multiplier. Its common usage as a binary multiplier was limited to counting units of computer memory, and is purely an approximation to allow convenient speaking of, e.g., a megabyte of RAM instead of 1.048576 megabytes of RAM. Because it reflects the natural scale of physical memory. It is more properly referred t…
Just a small correction: the abbreviated form of mebibyte is MiB.
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#196hmmm, I'm a little bit skeptical about this. I'd be cool to have this as a python script somewhere but I am not quite sure wether I would visit this site whenever I need to calculate some physical units, especially since google already covers most of my needs dont get me wrong, I think otherwise it looks and feels great and is easy to use but I dont know who will use this.
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#197And it looks useful.
Unfortunately that means you will be inundated with requests for further improvements. :-)
I see that you have a built in constant for μ0, mu0.
But it evaluates to
0.00000125664 N/A²
for the ultimate in precision surely it should be expressed as 4π×10−7 N/A²
At least when I use mu0 in spreadsheets, etc., I always define it that way, easier to remember too. And sometimes it lets me see that the pi cancels out.Re: Show HN: Insect – a high-precision scientific calculator with physical units
#198The Imperial system uses the same names for many units but the sizes of several important ones are different.
For instance Insect says:
≫ 1 gal/1litre 1 gal / 1 L = 3.78541
If this gallon were really Imperial then it would say.
≫ 1 gal/1litre 1 gal / 1 L = 4.54609
This is mostly because 1 pint US is 16 fluid ounce US but 1 pint imperial is 20 fluid ounce imperial.
But be careful because 1 fluid ounce imperial is 28.4131 ml, whereas 1 fluid ounce US is 29.5735 ml.
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#199Earlier quoted context omitted.
It's great at unit conversions. You can do things like "number of milliseconds between amsterdam and paris at speed of sound". I use it all the time.
Your query doesn't exactly work though, it's interpreted as "paris at speed of sound". However "time between amsterdam and paris at the speed of sound in milliseconds" does work, returning 1.26*10^6 ms.
Re: Show HN: Insect – a high-precision scientific calculator with physical units
#200Earlier quoted context omitted.
Your query doesn't exactly work though, it's interpreted as "paris at speed of sound". However "time between amsterdam and paris at the speed of sound in milliseconds" does work, returning 1.26*10^6 ms.
(shame smiley) I could've tested the query, but I wrote it on mobile.