Aspects

vs

Multiplication

Multiplication is the mathematical operation of scaling one number by another

Multiplying

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

Mistake compiler optimization

Quality Example
Easier

"Implementing multiplication is easier if you remember an shl operation performs the same operation as multiplying the specified operand by two"

from question "Assembly 8086 - Implementing any multiplication and division without MUL and DIV instruction"

"Multiplication is the easier of the tasks just remember to multiplying each block of one number with the other and carry the zeros"

from question "Convert string to a large integer?"

Faster

"Mathematically left shifting is the same as multiplying a number by a power of 2 but as the operation is done only by shifting it is much faster than doing multiplication"

from question "What does &lt;&lt; represent in python?"

Longer

"If i make a mistake and multiplying a number by 1.0 instead of 1 and i do not use any compiler optimization then my multiplication will last much longer than multiplying a number by 1"

from question "Double multiplication independent from the length of the variable?"

Others

Quality Example
Easier

"Matrix multiplication is the easier one there are several matrix implementations with a multiplying method in packages org.apache.spark.mllib.linalg and org.apache.spark.mllib.linalg.distributed"

from question "Spark distributed matrix multiply and pseudo-inverse calculating"

First probably simpler

"Multiplying first is probably simpler than using floating point if you only want an integer result and if you know that the multiplication will never overflow"

from question "C# percentage is 0"

Slightly more

"Multiplication is slightly more complex as it needs an integer multiplying followed by a scale back such as 0.72 2 becomes 72 200 becomes 14400 becomes 144 scaleback becomes 1.44"

from question "What&#39;s the best way to do fixed-point math?"

Slightly harder just

"Multiplication is slightly harder just multiplying two scaled numbers and then divide by your scale factor"

from question "How can I do accurate decimal number arithmetic since using floats is not reliable?"

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