module: wb_buff_model
description: polynomial fit for inverting buffer amplifier
parameters: double p4 double p3 double p2 double p1 double p0 
inputs: double in 
outputs: double out
static_variables:
classes:
init:
code:
if (in < -0.6)
{
out=-0.85*in;
}
else if (in >0.5)
{
out=-0.95*in;
}
else
{
out=p4*in*in*in*in+p3*in*in*in+p2*in*in+p1*in+p0;
}
