edited and used trial version of sim_eqn.cpp

It will print a lot of unnecessary information that I am too lazy to
delete. But yeah, it works!!!