frimpomaapapabi frimpomaapapabi
  • 06-02-2021
  • Computers and Technology
contestada

What is the algorithm to determine the absolute of a number

Respuesta :

trihext
trihext trihext
  • 06-02-2021

This was written in python, let me know if it needs to be in another language.

Ver imagen trihext
Answer Link
djenea12
djenea12 djenea12
  • 06-02-2021

Answer:

Conditionals are slower than plain arithmetic operations, but much, much faster than something as silly as calculating the square root

Explanation:

integer or bitwise op: 1 cycle floating -point add/ sub/mul: 4 cycles . Floating- point div ~ 30 cycles Floating - point exponentiation :~ 60 cycles depending on implementation Conditional branch : avg. 10_ cycles, better if well- predicted , much worse if mispredicted.

Answer Link

Otras preguntas

How did ancient Greek and Roman philosophy inspire the Enlightenments
what type of transformation is y=(x-2)^3+5
Marking Brainliest for first right answer
What is the volume of the rectangular prism shown ?
Tell whether the given value is a solution of the inequality. x − 2 ≥ −1.6 ; x = 0.8
what is 130.45 + 3.287 ?​
I NEED HELPP NOW PLSSSSS!!!
Activities such as jogging or swimming are forms of 2 points a. stress appraisal b. relaxation c. aerobic exercise d. biofeedback
PLEASE ANSWER ASAP FOR BRAINLEST!!!!!!!!!!!!!!!!!!!!!! The length of each of the two congruent sides of an isosceles triangle is 2x + 3. The length of the third
Neighbors can plant a garden. Then everyone takes care of it. Everyone can eat what is grown. Which best retells what this means? A Neighbors work together for