Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

 Messages: [ Previous | Next ]
 Scott Berg Posts: 2,111 Registered: 12/12/04
Re: can't prove simple inequality (seems to hold but can't prove)
Posted: Mar 13, 2013 4:00 PM

"Ken Pledger" <ken.pledger@vuw.ac.nz> wrote in message
news:ken.pledger-4DE6ED.08432314032013@news.eternal-september.org...
> 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 ?

Date Subject Author
3/13/13 Ken.Pledger@vuw.ac.nz
3/13/13 Scott Berg
3/13/13 quasi
3/14/13 quasi
3/13/13 quasi