Closed ddavidebor closed 8 years ago
I'd take a pull for adding a Math.js function, however that might look.
Timelion does all computations server side.
@rashidkpc we're working on an implementation as a plugin, using your timelion-random as a basis.
I'll close the issue so it does not clutter, but here are a few reasonable features:
.es(query).math("this*2")
.es(query).math("this to Kw")
.es(current).math(i=this).hide(), .es(voltage).assign(v=this).hide()
.math(power=(v*i))
or .math(v*i).label(power)
Other function that may be developed in order to make this usable, thought not now:
We're working here
Davide
That looks so cool!
I wanted to ask the opinion of the project managers:
Writing from scratch all the math functions is slow. I suggest using a more advanced solution such as Math.js that allows chaining of functions, expression parsing, can efficiently manage matrix of data and convert between units.
There is no need to reinvent the wheel, most of the statistical functions are already present
Also, the possibility to print in latex and debug with understandable errors (example) would solve #157 and allow an easy-to-understand visualization for people who have a background more into engineering/physics (like myself) than software.
Timelion can do computations server-side right? Davide Fermium LABS srl