added math lib by romain