result = eval(match[1]);
You'll get access to many more functions, including unit conversions.Show HN: Kalu – Calculator concept for long and inter-linked calculations
11–19 of 19 posts
Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations
#12None 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.
Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations
#13Pretty 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"
Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations
#14Reminds me of http://tydligapp.com/ . I always thought it would make a great desktop app.
Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations
#15I 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?
Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations
#16Reminds me of http://tydligapp.com/ . I always thought it would make a great desktop app.
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.
Re: Show HN: Kalu – Calculator concept for long and inter-linked calculations
#18Pretty 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
#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.