Update 01_use_addition_instead_of_mul2.md

This commit is contained in:
tilleul 2022-08-08 14:48:53 +02:00 committed by GitHub
parent 4b4c72cb37
commit 0edf888ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ Where fundamentals in mathematics might be useful for speed.
And when you're multiplying by 2, it's faster to use the addition counterpart.
This is **always** true if what you want to do is ``A=2*B`` and that you use variables and replace hardcoded constants with variables (see section [Use variables as placeholders for constant values](#1-use-variables-as-placeholders-for-constant-values)). If you don't, you might get mitigated results.
This is **always** true if what you want to do is ``A=2*B`` and that you use variables and replace hardcoded constants with variables. If you don't, you might get mitigated results.
Demonstration: