title: Convert first order transfer function to c code
body: <p>I have a simple first order transfer such as "3/s+3" or "tf(3,[1 3])" function and I would like to implement in c code. I have a C function that is called with the delta time since the last iteration:</p>
  
  <pre><code>double output(double input, double t); //usually, t is around 0.01 second
  </code></pre>
  
  <p>How do implement the transfer function 3/s+3 in C?</p>