title: Awk parsing a math equation into variables
body: <p>Well, I'm new to awk and I have an input equation like this:</p>
  
  <pre><code> y = 0.02 sin(20πt-0.2πx)
  </code></pre>
  
  <p>From that equation,i want to:</p>
  
  <p>-copy the <code>0,02</code> into A variable</p>
  
  <p>-copy the <code>sin</code> into B variable</p>
  
  <p>-copy the <code>20</code> from <code>20πt</code> into C variable</p>
  
  <p>-copy the <code>-0.2</code> from <code>-0.2πx</code> into D variable</p>
  
  <p>-and get rid of all the whitespace</p>
  
  <p>But i don't know how to do that in awk, can somebody help me please?
  Thanks in advance</p>