title: Using sin and cos math functions in bash
body: <p>I have a text file contains columns of data like this:</p>
  
  <pre><code> col1     col2    col3    col4   col5  col6    col7   col8    col9  col10
  
  50.000   7.920    0.509   11.2   2.60  192.7  25.71  0.3490  188.6  17.81
  50.170   7.920    0.609   12.2   2.72  211.7  26.17  0.3326  213.8  18.19
  50.330   7.920    0.712   14.1   2.92  218.9  28.17  0.3228  215.1  21.73
  ...
  </code></pre>
  
  <p>I want to create another delimited text file (a using bash script) derived from the first one which its columns have values as these:</p>
  
  <pre><code>col1      col2      col3      col3*[-sin(col6)]     col3*[-cos(col6)]
  ...
  </code></pre>
  
  <p><code>sin</code> is Sine function and <code>cos</code> is Cosine function in mathematics.
  How should I do that?</p>
  
  <p>Thanks in advance.</p>