Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 885337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:53:42+00:00 2026-05-15T12:53:42+00:00

Reading this question got me thinking: For a given function f , how can

  • 0

Reading this question got me thinking: For a given function f, how can we know that a loop of this form:

while (x > 2)
   x = f(x)

will stop for any value x? Is there some simple criterion?

(The fact that f(x) < x for x > 2 doesn’t seem to help since the series may converge).

Specifically, can we prove this for sqrt and for log?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:53:43+00:00Added an answer on May 15, 2026 at 12:53 pm

    For these functions, a proof that ceil(f(x))<x for x > 2 would suffice. You could do one iteration — to arrive at an integer number, and then proceed by simple induction.

    For the general case, probably the best idea is to use well-founded induction to prove this property. However, as Moron pointed out in the comments, this could be impossible in the general case and the right ordering is, in many cases, quite hard to find.

    Edit, in reply to Amnon’s comment:

    If you wanted to use well-founded induction, you would have to define another strict order, that would be well-founded. In case of the functions you mentioned this is not hard: you can take x << y if and only if ceil(x) < ceil(y), where << is a symbol for this new order. This order is of course well-founded on numbers greater then 2, and both sqrt and log are decreasing with respect to it — so you can apply well-founded induction.

    Of course, in general case such an order is much more difficult to find. This is also related, in some way, to total correctness assertions in Hoare logic, where you need to guarantee similar obligations on each loop construct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 506k
  • Answers 506k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try this way from EventsController: $this->Event->Category->find('all', array( 'conditions' => array('Category.id'… May 16, 2026 at 3:36 pm
  • Editorial Team
    Editorial Team added an answer You're trying to access primaryKeyWordsBox outside the class Application in… May 16, 2026 at 3:36 pm
  • Editorial Team
    Editorial Team added an answer I apparently have solved my problem. My mistake was to… May 16, 2026 at 3:36 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I previously posted this question ( Reading Google docs spreadsheet ) and got a
While reading up on SQLite, I stumbled upon this quote in the FAQ: Threads
I'm reading up about attributes and understand that they can be made to apply
I've just been reading this question which is about giving an ActiveRecord model's date
I've got this 1 minute long movie that I want to compile into an
I've been reading the book Enterprise Rails by Dan Chak and it got me
I'm reading in a large text file with 1.4 million lines that is 24
Firstly, this DB question could be a bit DB agnostic, but I am using
I've got an iPhone app that need to be localized. No problem with strings,
So I've seen this question asked before and in fact I asked it last

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.