Aspects


vs


Multiplying

This is one of the four elementary, mathematical operations of arithmetic; with the others being addition, subtraction and division.

Subtract

Subtraction is a mathematical operation that represents the operation of removing objects from a collection

Others

Quality Example
Weaker

"Similarly if you skip the five first elements your loop takes o n-5 time but that too is the same as o n because adding or subtract a constant is even weaker than multiplying by a constant"

from question "Analysing time complexity of my programs"

Greater

"Subtract first field from the other and if the value is not greater than 0 multiplying by -1"

from question "I want to get two integers from a user via a text input, find the difference between the two numbers and divide that number by 25. How do I do this?"

Bigger

"The logic is multiplying by 2 whole number 0.1 2 0.2 and if it s bigger than 1 subtract and continue"

from question "Strange output in comparison of float with float literal"

Faster

"Subtract is faster than multiplying"

from question "How to display an absolute value"

"P is sometimes chosen to be 31 because not only is it prime but a compiler resolves it to a bitshift and a subtract which is much faster than a multiplying"

from question "Hashing set of objects C#"

More reliable

"Adding and subtract logarithms of factorials then taking the exponential at the end is more reliable than multiplying and dividing factorials directly"

from question "How can I compute double factorials in Perl?"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0