fraction calculator by mathlab