Re: Mersenne: Java/javascript anyone?
Yes, this can definitely be done in JavaScript that works in both IE and Netscape. I am willing to write the code, but I won't have time until about May 5th or so because I have exams and that type of stuff occupying my time for the next week. At 22:41 26/04/00 -0400, you wrote: >Hi, > > I sent this a few days ago, but it seems to have gotten lost... > > In my new benchmarking page I'd like to create a form that >takes CPU type, CPU speed, and exponent and returns the estimated >number of days to complete the exponent. I hope this will help newcomers >understand how much effort is required before joining GIMPS. > Can this be done in Javascript (both MSIE and Netscape)? Can >it be done on the client side (i.e without a "Submit" button and CGI)? >If so, would someone care to volunteer to write the necessary script >using three or four lines from the http://www.mersenne.org/bench.htm >table and I'll fill in the rest? > >Thanks, >George > >_ >Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm >Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers > > Nick Glover: [EMAIL PROTECTED] ICQ UIN: 3463696 Computer Science, Clemson University Homepage: http://hubcap.clemson.edu/~nglover/ "It's good to be open-minded, but not so open that your brains fall out." - Jacob Needleman _ Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers
Re: Mersenne: Java/javascript anyone?
George Woltman wrote: > In my new benchmarking page I'd like to create a form that >takes CPU type, CPU speed, and exponent and returns the estimated >number of days to complete the exponent. I hope this will help >newcomers understand how much effort is required before joining >GIMPS. > Can this be done in Javascript (both MSIE and Netscape)? >Can it be done on the client side (i.e without a "Submit" button >and CGI)? >If so, would someone care to volunteer to write the necessary script >using three or four lines from the http://www.mersenne.org/bench.htm >table and I'll fill in the rest? George, I've come up with a dynamic javascript form for the purpose. It needs a little more work to be done. I'm converting the numerous 'if' statements into an array lookup, and making it calculate out more than just days... I should have it fixed up within two or three days I'll send it to you when it's finished to your opinion at that time! Eric _ Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers
Re: Mersenne: Java/javascript anyone?
That's correct in calculations. That's how I calculated my own time, independent of the computer. Since it said it was going at 1.75 seconds per iteration, and there were 9025267 iterations to go, I just multiplied 1.75 by 9025267, and rounded high (knowing I'd be stopping every now and then), and used my TI-85 to turn that into days. That just divides the number by 86400. So it said I had to take 182.8034222 More days till the end. Finally, considering that the whole thing started March 10th, I went to the calendar, and counted out 183 days. I think that you can calculate that, in Java. Anyway, my calculations said that I'd be done some time around September the eleventh. Of course, I wanted to know when, so I took 182.8034222, and took the whole think mod 1, giving the fraction .8034222, which I converted back to hours, by multiplying by 24, giving 19.2773. so, it would be 19 hours from when I started, that being the basis of my calculation. This I took mod 1, giving .2773 which I multiplied by 60, to give the number of minutes, giving 16.4 , so I knew there would be 16 minutes. This I also took mod 1, giving .4, which I multiplied by 60, giving 24 seconds from when I started. PS I also started learning Java a little bit ago, and I may be able to help, but not until summer. Marko Man _ Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers
Re: Mersenne: Java/javascript anyone?
Kevin Sexton wrote: George Woltman wrote: > > Hi, > > I sent this a few days ago, but it seems to have gotten lost... > > In my new benchmarking page I'd like to create a form that > takes CPU type, CPU speed, and exponent and returns the estimated > number of days to complete the exponent. I hope this will help newcomers > understand how much effort is required before joining GIMPS. > Can this be done in Javascript (both MSIE and Netscape)? Can > it be done on the client side (i.e without a "Submit" button and CGI)? > If so, would someone care to volunteer to write the necessary script > using three or four lines from the http://www.mersenne.org/bench.htm > table and I'll fill in the rest? > > Thanks, > George > > _ > Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm > Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers One short question, I might be able to figure it out myself, but it's late, and I'm lazy right now, but how is the estimated time calculated? for example for a P-II 400 on a 7.73M to 9.02M exponent the timing is 0.252 How would the days be calculated? _ Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers I do these calculations ad nauseam like this: say 8M *.252 gives the total number of seconds (best case!). Then divide by 86400, the number of seconds on a day, and get 2016000 / 86400 = 23.3 days. Now calculate CPU hours per day (homework) :-) Unless, of course, I'm even more tired than you are Selah! Stefanovic
Mersenne: Account ID
<< Bucephalus >> Someone has a great sense of humor. :-D Stephan Lavavej _ Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers
Re: Mersenne: Java/javascript anyone?
George Woltman wrote: > > Hi, > > I sent this a few days ago, but it seems to have gotten lost... > > In my new benchmarking page I'd like to create a form that > takes CPU type, CPU speed, and exponent and returns the estimated > number of days to complete the exponent. I hope this will help newcomers > understand how much effort is required before joining GIMPS. > Can this be done in Javascript (both MSIE and Netscape)? Can > it be done on the client side (i.e without a "Submit" button and CGI)? > If so, would someone care to volunteer to write the necessary script > using three or four lines from the http://www.mersenne.org/bench.htm > table and I'll fill in the rest? > > Thanks, > George > > _ > Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm > Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers One short question, I might be able to figure it out myself, but it's late, and I'm lazy right now, but how is the estimated time calculated? for example for a P-II 400 on a 7.73M to 9.02M exponent the timing is 0.252 How would the days be calculated? _ Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers