As a software Engineer, we should always look at optimising the code (ensuring it has the least possible CPU process cycles (typical O(function(n)) algorithm analysis), making it as generic as possible and, making sure it has the best solution). A simple math logic can be implemented in solving some complicated problems. Say, there is an array, which has one non-repeated number and rest duplicates (9,6,9,7,6,7,4,5,4). if you consider this example, only 4 is not repeated, rest are present exactly twice. If you are asked to find that non-repeated number, brute force method will make your code complicated. With a small Mathematics implementation, performing XOR operation on the array will give you the answer 5 without making your code convoluted.

Similarly, many ML, Data Science algorithms will need Simple and Complex Maths logical implementations [statistics] to get your application working efficient. The simple logical extrapolations makes problem-solving easier, strong and, pristine.

:)