Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

shiroo

  • one year ago

shiroo:I am not understanding epsilon and numguesses please help.

  • This Question is Closed
  1. harsimran_hs4
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    epsilon is generally used to depicit the level of accuracy you want in your answer..... consider a statement in program to find square root if mod(x - (ans*ans)) <= epsilon: this means that the answer you require is such that it no more or less that epsilon from the actual answer one important thing doing ans*ans == x is a bad thing because when you increment what you expect from normal mathematics or rather number system , the computer may have a slightly different representation for eg. 0.1 is not exactly 0.1 for the computer so we always introduce some term such as epsilon that will determine the level of accuracy we want in our answer as regaring numguesses it`s just number of guesses you made to get to your answer in sqrt program it`s simply the number of iterations of the while loop hope you got your answer if still any doubt please do ask.....

  2. bwCA
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    when working with floating point numbers, you will not get an exact result. using a tolerance with numeric comparisons will allow you to compensate for that. you need to choose the tolerance based on your accuracy needs. in this case epsilon is the variable for this tolerance.

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

    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.