Live data from Hacker News

Show HN: Kalk, A calculator with math syntax, complex numbers

kalk.strct.net

31–40 of 90 posts

Re: Show HN: Kalk, A calculator with math syntax, complex numbers

#31
post #24
post #22

Earlier quoted context omitted.

Thank you! Yeah, or at least give a warning.

Beautiful Web GUI, beautiful source code, "cargo install kalk_cli" && it works like a charm! Thanks for sharing this.

Thank you so much! This is my first (and only) Rust project so I'm a bit nervous about the code quality.

Re: Show HN: Kalk, A calculator with math syntax, complex numbers

#36
post #35

`√2` works but `√-1` doesn't, which surprised me a bit. I' expect unary `-` to bind tighter, but in this context it considers that it's a binary operator between `√` and `-1`. If you put parens it works of course.

Yeah same with x^-1, I forgot about that, thanks!

Re: Show HN: Kalk, A calculator with math syntax, complex numbers

#37

For fun, try to run this: `2 + 2 * 10%` in all calculators you have access to: on you phone, on your desktop, in kalk. As they say, "the answer will surprise you" :)

Performing the calculation with Soulver did not surprise me (being what I calculated in my head ahead of time): 2 + 2 × 10% = 2.2 At the risk of admitting my ignorance, yet more interested in learning something new: should this answer (2.2) surprise me?

Wolfram Alpha and iOS also give 2.2

On MacOS the answer is 2.4

In kalk it's 2.002

On Windows it's 0.4 in simple calc, and 2 in programmer calc (and there's no % in engineering calc)

Re: Show HN: Kalk, A calculator with math syntax, complex numbers

#38

For fun, try to run this: `2 + 2 * 10%` in all calculators you have access to: on you phone, on your desktop, in kalk. As they say, "the answer will surprise you" :)

  $ units
  You have: 2 + 2 * 10%
    Definition: 2.2
ITYM "the answer may surprise you", and in this case it did not.

Re: Show HN: Kalk, A calculator with math syntax, complex numbers

#40

Earlier quoted context omitted.

Performing the calculation with Soulver did not surprise me (being what I calculated in my head ahead of time): 2 + 2 × 10% = 2.2 At the risk of admitting my ignorance, yet more interested in learning something new: should this answer (2.2) surprise me?

Wolfram Alpha and iOS also give 2.2 On MacOS the answer is 2.4 In kalk it's 2.002 On Windows it's 0.4 in simple calc, and 2 in programmer calc (and there's no % in engineering calc)

Haha damn, didn't expect that
Post reply on HN