Thread: Problem 50
View Single Post
  #7  
Old November 22nd, 2008, 02:44 AM
CaptainBlack's Avatar
CaptainBlack CaptainBlack is offline
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 12,257
Country:
Thanks: 776
Thanked 3,982 Times in 3,214 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by David24 View Post
CaptainBlack,

Am I correct in conjecturing that the value of x which minimises f(x) satisfies,

|x-2| =|x-2^16| ?

David

ps - I apologise for any grammatical and or spelling mistakes that may be present in the above statement.
Well lets see,

|x-2|=|x-2^{16}|

implies (assuming 2 \le x \le 2^{16} anyway) that:

x-2=2^{16}-x

or:

x=2^8-1

Now lets do some calculations:

Code:
>i=1:16;
>
>x=[2^8-1:2^8+1]'
          255 
          256 
          257 
>
>s=abs(x-2^i);
>S=sum(s)
       130052 
       130050 
       130050 
>
So we conclude that, no your proposed condition does not define the solution.

CB
__________________
Truth does not change because it is, or is not, believed by a majority of the people.

Giordano Bruno