Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
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... > 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 ?
|
|
|
|