All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Flooring a Floor-Ceiling Function (Posted on 2023-04-17) Difficulty: 3 of 5
At the outset, it is known that x is a positive real number.

Determine the minimum value of:

x*floor(x) + floor(1/x) + x + 1/x + x*ceiling(x) + ceiling(1/x)

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution | Comment 1 of 5
Graphing the function shows the answer is around 0.7072.

The segment in question then is y = 1+x+1/x+x+2 = 3+2*x+1/x

Its derivative is 2-x^(-2).

Setting that to zero, 1/x^2 = 2

x = 1/sqrt(2)

The minimum value of the function is

3+sqrt(2)+sqrt(2)

= 3 + 2*sqrt(2)

Check via this program:

d=.0001
v=1/sqrt(2)

for x=v-d:d:v+d
  3+2*x+1/x
end

finds

d =
                    0.0001
v =
         0.707106781186547
ans =
          5.82842715303446
ans =
          5.82842712474619
ans =
          5.82842715302646
          
The middle answer is the smallest.

  Posted by Charlie on 2023-04-17 10:02:32
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (9)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information