Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Arbitrary math parsing #174

Closed
ddavidebor opened this issue Aug 29, 2016 · 3 comments
Closed

Arbitrary math parsing #174

ddavidebor opened this issue Aug 29, 2016 · 3 comments

Comments

@ddavidebor
Copy link

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

@rashidkpc
Copy link
Contributor

I'd take a pull for adding a Math.js function, however that might look.

Timelion does all computations server side.

@ddavidebor
Copy link
Author

@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:

  • full math functions with syntax such as .es(query).math("this*2")
  • treat with units conversion .es(query).math("this to Kw")
  • save variables .es(current).math(i=this).hide(), .es(voltage).assign(v=this).hide()
  • retrieve and elaborate on variables .math(power=(v*i)) or .math(v*i).label(power)
  • very fast vector math
  • thernary conditions, various test operators
  • string to number
  • scientific costants, trigonometry and all sort of stuff
  • easily import other statistical and math functions in a very similar way to the one Timelion uses, but instead allowing them to be used inside math equations

Other function that may be developed in order to make this usable, thought not now:

We're working here

Davide

@rashidkpc
Copy link
Contributor

That looks so cool!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants