Live data from Hacker News

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

kalk.strct.net

71–80 of 90 posts

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

#71
post #69
post #51

Earlier quoted context omitted.

These are some great suggestions! I should absolutely make it add spaces, can't believe I didn't think of that. Also, it actually does have a way to reference the last result, I forgot to document it. It's a variable called "ans"! The last thing, yeah, that would be neat. I'll think about it...

This is a really great calculator, will definitely be using it! FYI I noticed there is a very similar product with the same name: https://kalk.dev/

Also I noticed it crashes if you write ceil then erase the right-most ceil symbol!

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

#72

I immediately found a few Unicode features I hoped were supported but aren’t. Superscripts: firstly numerals, like 3² = 9, but ideally then letters as well, e.g. 3ⁱ = 3^i. Might be suitable to support superscripts to define nth roots, too, e.g. ⁵√. tan¯¹ can be a thing too. Subscripts: same deal; log₂ 31 = log(31, 2). Proper arithmetic operators: times (×), minus (−), division (÷). Also fraction slash (⁄), which can…

Oh yes! I have thought about the subscript/superscript thing, but didn't think of these other things. That would actually be great.

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

#73
post #69
post #51

Earlier quoted context omitted.

These are some great suggestions! I should absolutely make it add spaces, can't believe I didn't think of that. Also, it actually does have a way to reference the last result, I forgot to document it. It's a variable called "ans"! The last thing, yeah, that would be neat. I'll think about it...

This is a really great calculator, will definitely be using it! FYI I noticed there is a very similar product with the same name: https://kalk.dev/

Yeah the name isn't very good. This wasn't actually supposed to become something, it was a quick thing I made when I was bored, that suddenly expanded into all this, haha. I like being able to type `kalk` in the terminal, but maybe something needs to be added to the name to make it more recognisable.

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

#75
post #73
post #69

Earlier quoted context omitted.

This is a really great calculator, will definitely be using it! FYI I noticed there is a very similar product with the same name: https://kalk.dev/

Yeah the name isn't very good. This wasn't actually supposed to become something, it was a quick thing I made when I was bored, that suddenly expanded into all this, haha. I like being able to type `kalk` in the terminal, but maybe something needs to be added to the name to make it more recognisable.

"kalk" is a great name for a calculator since the word also means "chalk" in a number of European (and descendant) languages.

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

#76
post #74

Nice work! And you beat me to the name "Kalk", I've had a private github repo with a calculator with that name for a while, though mine takes sort of the opposite approach, input and manipulation is very visual.

> though mine takes sort of the opposite approach, input and manipulation is very visual.

There is already opensource app for that: microMathematics Plus (μMath+) — Extended visual calculator for Android.[0,1]

[0] https://github.com/mkulesh/micromathematics

[1] https://f-droid.org/packages/com.mkulesh.micromath.plus/

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

#77

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)

2.2 via Google[0]

> and there's no % in engineering calc

Use 0.1 instead of 10%, it has the same vibe ;)

[0] https://www.google.com/search?gbv=1&q=2%2B2%C3%9710%25&oq=&a...

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

#78
Pity it's not in homebrew. I realize I can manually download a binary and manually install it and make a note somewhere where I got it from in case I forget and then periodically re-check manually if an update is out, or just never install any updates, but I'm trying to not do that if it can be helped.

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

#79
I'm a big fan of https://qalculate.github.io/. It has a nice GUI which can be used interchangeably with the CLI version.

It also has units, many built-in physical constants, currency conversion, matrices and probably tons of other stuff I don't know about.

I don't think it can be easily ran in a browser though.

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

#80
post #74

Nice work! And you beat me to the name "Kalk", I've had a private github repo with a calculator with that name for a while, though mine takes sort of the opposite approach, input and manipulation is very visual.

> though mine takes sort of the opposite approach, input and manipulation is very visual. There is already opensource app for that: microMathematics Plus ( μMath+ ) — Extended visual calculator for Android.[0,1] [0] https://github.com/mkulesh/micromathematics [1] https://f-droid.org/packages/com.mkulesh.micromath.plus/

Sure, there's lots of great calculator apps with visual interfaces.
Post reply on HN