Simulation of Quadratic system