#include "RClib.h"




void timeStep( RCLP_t * this, double t) {
 // there is a more unified version of this calculation I can quite muster in my head.
  if (this->E > this->V0) {
    this->V0 = this->V0 + (this->E - this->V0) * (1.0 - exp( -(t /(this->R*this->C))) );
  } else {
    this->V0 = this->E + (this->V0 - this->E) * (exp( -(t /(this->R*this->C))) );
  }
}
