7 ms·
Show HN: Kalu – Calculator concept for long and inter-linked calculations
- jeffasinger 11y agoThis is a pretty cool idea. One thing that would make it more useful to me, though much more difficult to implement, is that when you click a reused value, it store a reference to that result, so if you change the calculations for that result, all the references change also. For example, that way I could have some initial parameters up top, and use those in a complicated calculation, with the end result changing if I change those parameters.
- TTPrograms 11y agoBingo. Then add plotting functionality for ranges of those values.
- foxbarrington 11y agoPretty 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"
- robotmlg 11y agoThis 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.
- chinchang 11y agoYes, 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?
- onaclov2000 11y agoI 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?
- chinchang 11y agoYes, it does. Actually any JavaScript works. So you can do Math.pow, Math.sin etc etc
- pavlov 11y agoThe name means "dick" in Finnish. Oh well, there are thousands of languages spoken in the world, can't check them all! ...Actually, that would be a damn useful site: doesthiswordmeansomethingdirtyinanobscurelanguage.com
- knd775 11y agoI really like this. The only issue that I found in my short time playing with it is that a/0 returns infinity rather than undefined. 0/0 does return NaN, though.
- jPaolantonio 11y agoReminds me of http://tydligapp.com/ http://tydligapp.com/ . I always thought it would make a great desktop app.
- chinchang 11y agoTime to get it on the web for everyone and not just iOS users :)
- lunixbochs 11y agoCalca has served me pretty well on the desktop: http://calca.io http://calca.io
- dugmartin 11y ago@chinchang: If you replace the eval() with math.eval from http://mathjs.org/ http://mathjs.org/ here result = eval(match[1]); You'll get access to many more functions, including unit conversions.
- chinchang 11y agoThat thing is awesome! Thank you so much for the link :) I'll look into it.
- linksbro 11y ago> "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.
- chinchang 11y agoTried your example: Math.floor(2.5). Seems to be working on Chrome. Which browser are you using?