Smatchcube's website ๐ŸŒ


Exercise 2.86

We need to call the add, sub, mul and div procedures instead of the +, -, * and / operators inside our sub-procedures dealing with rectangles and polar complex numbers. In general we should use generic operators whenever itโ€™s possible. We also need to have generic sine and cosine procedures working with either rational or real numbers.\ Here are the changes:

Some changes might be omitted.