Updated mathoperations.h to use switch-case statements instead of multiple ifs