Aspects


vs


Addition

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

Subtraction

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

Bignum little chip

Quality Example
Slower bignum

"But i d think bignum subtraction is a little slower than bignum addition"

from question "Fermat vs Mersenne as modulus"

Slower

"It s possible though that software could mess things up by making subtraction slower than addition - but that s unlikely"

from question "Does Adding A Value Differ In Computational Requirement From Subtracting A Value?"

"This is a hold over from older compilers and interpreters on old chip architecture that would do addition slightly slower than subtraction"

from question "How can I enhance this for loop"

Others

Quality Example
Better

"A111 addition is equal or better than subtraction"

from question "Minimum number of steps to reduce number to 1"

Bigger

"I was thinking that there could be an issue if the result from the addition is bigger than what 15 bits can represent 32767 or if i get a negative number in the subtraction"

from question "VHDL: issues with adding and subtracting"

Slower

"Here it is conceivable that subtraction is slower than addition"

from question "Does Adding A Value Differ In Computational Requirement From Subtracting A Value?"

More work

"The subtraction case is going to require a little more work than addition in this code"

from question "Blue Pelican Add 'Em Up Project"

Higher precedence

"The only way it would be broken up differently would be if addition had a higher precedence than subtraction like multiplication does"

from question "How does Javascript handle BODMAS?"

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