Live data from Hacker News

Show HN: Kalu – Calculator concept for long and inter-linked calculations

kushagragour.in

11–19 of 19 posts

Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations

#13

Pretty neat. Curious if it's out of score or valuable to make the output/input behave more like a variable than copy/paste? e.g. line 1 is "2 + 3", so you click on the result, "5" and you use that in a new expression: "5 + 20". However, if you go and change the original line to "7 + 3" the second expression could update to "10 + 20"

This was the first thing I tested, and I think it would be extremely valuable if results could propagate through future equations like this. Change the one at the top and everything below updates.

Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations

#15

I like it, I'm taking the AI for Robotics class on Udacity, and I have a chromebook as my primary machine, I'm going to bookmark this and likely use it most of the time. Does it support math functions like power, exponential, etc? and how?

Yes, it does. Actually any JavaScript works. So you can do Math.pow, Math.sin etc etc

Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations

#17

> "keep writing your calculations in JavaScript" None of the Math.x functions work, e.g. Math.floor(2.5). Defining functions also doesn't work. Looks promising though, I would use it for scratching project euler problems.

Tried your example: Math.floor(2.5). Seems to be working on Chrome. Which browser are you using?

Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations

#18

Pretty neat. Curious if it's out of score or valuable to make the output/input behave more like a variable than copy/paste? e.g. line 1 is "2 + 3", so you click on the result, "5" and you use that in a new expression: "5 + 20". However, if you go and change the original line to "7 + 3" the second expression could update to "10 + 20"

This was the first thing I tested, and I think it would be extremely valuable if results could propagate through future equations like this. Change the one at the top and everything below updates.

Yes, I thought about that. The issue lies just in UX. Some people could want to copy-paste value without propagation and other with propagation. How does the app enable both things in the best way is the question. Just a thought: Cmd+Click?

Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations

#19

@chinchang: If you replace the eval() with math.eval from http://mathjs.org/ here result = eval(match[1]); You'll get access to many more functions, including unit conversions.

That thing is awesome! Thank you so much for the link :) I'll look into it.
Post reply on HN