Originally Posted by

**ff4930** Hi guys, I have 2 computer programming problems but it is math related so please help out if you can thanks!.

1.Sometimes software optimization can dramatically improve the performance of a computer system. Assume that a CPU can perform a multiplication operation in 10ns, and a subtraction operation in 1ns. How long will it take for the CPU to calculate the result of d = a x b - a x c?

Could you optimize the equation so that it will take less time?

I know the first part will take 21ns, but is there a way to manipulate the equation to make it perform the equation less than 21ns? Ive tried but nothing comes up.

...