Multiplication

Multiplication is the mathematical operation of scaling one number by another

Subtraction

Subtraction is a mathematical operation that represents the removal of an object from a collection.

Operations addition harder

Quality Example
More

"The addition and subtraction are much more than multiplication and division"

from question "Generate random pupil math problems"

Harder

"For floating point operations addition and subtraction are harder than multiplication and division so they may be slower or not again it depends on how much transistor real estate there is dedicated to the fpu"

from question "Do different operators have different amounts of cpu usage?"

Faster

"As in title why is multiplication much faster than subtraction in this example"

from question "Tensorflow: why is multiplication 20x faster than subtraction in this case"

"Subtraction operations and usually significantly faster than multiplication and division"

from question "Why were bitwise operations slightly faster than addition/subtraction operations on older microprocessors?"

Unary priority lower

Quality Example
Higher

"Since multiplication has a higher precedence than subtraction you should subtract 0 to your digit character before multiplying it"

from question "C pointer char array to char array"

Higher precedence

"This subtraction operator occurs within the second brackets and so has a higher precedence than the multiplication"

from question "Complex calculation in JavaScript"

Lower

"In t-sql unary minus is made to be the same priority as subtraction which is lower than multiplication"

from question "Why is SQL Server changing operation order and boxing the way it does?"

Others

Quality Example
More costlier

"In general multiplication is more costlier than subtraction right"

from question "Opencv Subtraction costlier than multiplication"

Cheaper

"Addition subtraction for the rectangular bound calculation is cheaper than multiplication"

from question "Fast circle collision detection"

Slower

"Multiplication is slower than subtraction"

from question "How to negate a variable?"

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