Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math.independent

Topic: can't prove simple inequality (seems to hold but can't prove)
Replies: 6   Last Post: Mar 14, 2013 1:21 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Scott Berg

Posts: 1,550
Registered: 12/12/04
Re: can't prove simple inequality (seems to hold but can't prove)
Posted: Mar 13, 2013 4:00 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


"Ken Pledger" <ken.pledger@vuw.ac.nz> wrote in message
news:ken.pledger-4DE6ED.08432314032013@news.eternal-september.org...
> In article <a6560b5e-3b92-481d-ba0d-1f4d4b01e9c1@googlegroups.com>,
> Thomas Plehn <thomas.plehn@gmail.com> wrote:
>

>> while(true)
>>
>> rr = rand(1,50);
>>
>> des = rand(1,50);
>>
>> diff = rr-des;
>>
>> if(min(diff) + max(des) > max(rr))
>> break;
>> else
>> disp(1); %need to know if this is always the case
>> end
>>
>>
>> end

>
>
>
> Would you mind writing it without computer code please?
>
> Ken Pledger.


he is not seeding his randoms => problem

if a - b + b > a then break (?)

why min( ) or max( ) ? where is storage for a table ??

where is disp( ) defined ? is it a counter that starts at 1 ?

how many trials ?






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.