Finished piecewise linear and tanh eos