Math Standard Algorithm