Addition

Addition is a mathematical operation that represents combining collections of objects together into a larger collection

Division

In mathematics, division (÷) is an arithmetic elementary operation.

Difference expensive costly

Quality Example
Much more

"The first difference is that division is much more expensive than addition"

from question "Why is Sieve of Eratosthenes more efficient than the simple "dumb" algorithm?"

More costly

"Generally the division is more costly than addition i think but not much difference in this case"

from question "32bit floating division is not as slow as I expected"

Time example cycles

Quality Example
More time

"I remember it says something like division takes much much more time than addition"

from question "Complexity of basic operations: Addition subtraction multiplication division greater equal"

Far more

"Best example the division it an an addition are both o 1 but usually the division takes far more cycles time to execute than the addition"

from question "Big-O of division"

Higher precedence subtraction

Quality Example
Operation slower

"It is true that division and modulo a division operation is slower than addition"

from question "Execution time of different operators"

Simpler

"Knuth writes that fibonacci search is preferable on some computers because it involves only addition and subtraction not division by 2. but almost all computers use binary arithmetic in which division by 2 is simpler than addition and subtraction"

from question "Is golden section search better than binary search?"

Longer

"The term is apparently not an exact measurement as it is clear that a double-precision floating-point operation is going to take longer than a single-precision one and multiplication and division are going to take longer than addition and subtraction"

from question "FLOPS what really is a FLOP"

Faster

"An addition is faster than a division and a multiplication"

from question "How do I use applyLinearImpulse based on rotation in Corona / Lua"

Operator higher precedence

"The division operator has a higher precedence than the addition operator + so you need to enclose the sum with brackets before dividing"

from question "Java How to calculate the average of 3 bowling scores"

More tightly

"The addition and subtraction is okay because the types of a and b force them to be performed using floating point arithmetic - but because division binds more tightly than addition and subtraction it s like using the brackets above only the immediate operands are considered"

from question "To return a double, do I have to cast to double even if types are double in c#?"

Higher precedence

"Multiplication and division operators have higher precedence than addition and subtraction in c++ same as in scientific notation"

from question "C++ Converting Fahrenheit to Celsius"

"Multiplication and division have a higher precedence than addition and subtraction"

from question "Precedence of && over ||"

"Note that division has a higher precedence than addition"

from question "Js bug in the average function"

"To start with i need multiplication and division to take higher precedence than addition and subtraction"

from question "Operator Precedence with Scala Parser Combinators"

"Multiplication and division are higher precedence than addition so they get done first - before the implicit conversion to string for concatenation"

from question "Javascript subtraction returns NaN"

"Finally we all know that multiplication and division have higher precedence than addition and subtraction so we can remove the extraneous parentheses so this turns into"

from question "C++ using ceil and length outputs incorrect value"

"The division has higher precedence than the addition so what you re calculating is sumaverage1+ sumaverage2 5 which is integer division which is probably not what you want"

from question "User enter 5 characters and averge sums out the 5 numbers in C"

Slower

"2.the division by 2 can be done by bit - shift operation is it really slower than addition"

from question "Is fibonacci search faster than binary search?"

"Division is performed by repeated subtraction therefore needs more level of subtract logic making division slower than addition"

from question "Execution time of different operators"

Higher

"Division has higher precedence than addition"

from question "How to print output in java"

"Division has a higher precedence than addition or subtraction so it s really this"

from question "I don't know about pre and post incrementation"

"Division has a higher precedence than addition ergo"

from question "C++ order of evaluation: division vs addition"

"Since division has a higher precedence than addition 5 2 gets evaluated as a integer division returning 2 as an integer"

from question "Explain "accumulated round-off error" for double values"

More complex

"As far as i know the division is more complex and slower than other operations like addition so is my code incorrect then"

from question "Comparing the time requirements of addition and division operation in GPU (CUDA)"

Operator higher

"This happens because the division operator has higher precedence than the + addition operator"

from question "Math operation in a While"

"The division operator has a higher order precedence as the addition operator"

from question "B-Spline recursive definition in C#"

"The division operator has a higher precendence than the addition operator so your function is calculating 1 1 + e -x"

from question "Sigmoid function in vb"

Higher priority

"Multiplication and division have higher priority than addition and subtraction"

from question "How do I do arithmetic operations specified in strings?"

Much slower

"It could be done via division which is much slower than addition or it could be translated into a bitwise and operation as well and end up being just as fast as the version"

from question "Is i=(i+1)&3 faster than i=(i+1)%4"

Faster gpu careful

Quality Example
Operation faster

"I need to find out that how much division operation is faster than addition operation in a gpu"

from question "Comparing the time requirements of addition and division operation in GPU (CUDA)"

Faster

"With careful optimization however you can make addition 61 times faster than division"

from question "How expensive are IEEE 754 double operations in respect to each other on Intel I7 chips?"

"Performing addition on this slightly larger type will pretty much always be faster than doing division or modulo on the type itself"

from question "Is there any way to find arithmetic mean "better" than sum()/N?"

"So if your code has tough data dependency problems addition is about 12 times faster than division"

from question "How expensive are IEEE 754 double operations in respect to each other on Intel I7 chips?"

Others

Quality Example
Less work

"In addition to that the crossing off may be less work than a division don t know about python it is for c arrays"

from question "Why do two algorithms for finding primes differ in speed so much even though they seem to do the same number of iterations?"

Larger

"And division has larger complexity than addition"

from question "Why is Sieve of Eratosthenes more efficient than the simple "dumb" algorithm?"

More expensive

"If you are doing physical simulations things like division or square roots are going to be way more expensive than addition"

from question "Precision error in summation addition/subtraction (of mass)"

"So even disregarding that division is more expensive than addition and multiplication we see that the number of operations the sieve requires is much smaller than the number of operations required by trial division if the limit is not too small"

from question "Why is Sieve of Eratosthenes more efficient than the simple "dumb" algorithm?"

Faster

"For example on most 32 bit systems 64-bit addition is faster than 32-bit division modulo"

from question "Is there any way to find arithmetic mean "better" than sum()/N?"

"For example an addition is typically much faster than a division"

from question "How long does each machine language instruction take to execute?"

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