Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Najib_el_g

  • 2 years ago

my question it's in lecture 6 : why we use max(x,1) in fonction squarerootBi

  • This Question is Open
  1. france
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Is that when you are trying to get the square root of a number less than 1?

  2. Najib_el_g
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yes ,

  3. france
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    well, the square root of a number less than 1 will be greater than the square. eg What's the square root of 1/4, it's 1/2. So by taking the max value of 1 or the square you are ensuring that the answer is in the 'search range'. So for example, if you took 1/4 as your high, it would end up contentiously looping. I think that is demonstrated in the lecture.

  4. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy