title: Store Math formula
body: <p>I'm working on an application that gives the user a hand to create mathematical formulas with variables and that could use them afterwards.</p>
  
  <p>Example of a mathematical formula that the user can create:</p>
  
  <pre><code> A*B+ (C/D*E)
  </code></pre>
  
  <p>After creating the formula, the user can use it in calculations, so I should parse it and retrieve the different variables (in our example:"A, B, C, D and E") and create a form for entering the values of these variables.</p>
  
  <p>My question is: How do I store my formula? </p>
  
  <p>I thought of a String that I would parse manually to retrieve the variables, and use Maths.eval to calculate the formula. 
  Or else, I could store my formula in JSON to facilitate the recuperation of variables after.</p>
  
  <p>What do you think is the right way to do it?</p>
  
  <p>Thank you</p>
  
  <p>NB : I know my question may be misspelled, I apologize.</p>