added math library as i was getting really annoyed knowing it couldnt handle double subtraction
built with bigjs library and a bit of cleaning