![]() |
|
|
#221 |
|
Aug 2006
3·1,993 Posts |
You used 2701, which was a bad case. Here are some other bad bases and their ratios:
Code:
A141768=[9, 25, 49, 91, 341, 481, 703, 1541, 1891, 2701, 5461, 6533, 8911, 12403, 18721, 29341, 31621, 38503, 79003, 88831, 146611, 188191, 218791, 269011, 286903, 385003, 497503, 597871, 736291, 765703, 954271, 1024651, 1056331, 1152271, 1314631]; for(i=1,#A141768,print(ratio(A141768[i])"\t"A141768[i])) Code:
0.750000000 9 0.833333333 25 0.875000000 49 0.800000000 91 0.852941176 341 0.887500000 481 0.769230769 703 0.842857143 1541 0.761904762 1891 0.820000000 2701 0.838461538 5461 0.838028169 6533 0.800000000 8911 0.754716981 12403 0.835576923 18721 0.861963190 29341 0.835483871 31621 0.752688172 38503 0.751879699 79003 0.751773049 88831 0.751381215 146611 0.751219512 188191 0.751131221 218791 0.751020408 269011 0.750988142 286903 0.750853242 385003 0.750750750 497503 0.750684931 597871 0.750617283 736291 0.750605326 765703 0.750542299 954271 0.765217391 1024651 0.750515464 1056331 0.758884636 1152271 0.750462107 1314631 |
|
|
|
|
|
#222 | |
|
Aug 2006
3×1,993 Posts |
Quote:
I edited it in before you posted this. Sorry, I had it in the sequence but initially forgot to include it here.
|
|
|
|
|
|
|
#223 | |
|
May 2010
Prime hunting commission.
69016 Posts |
Quote:
I made a base counter as well: Code:
bcount(n) = {
n = n * (1-(ratio(n)))
}
Last fiddled with by 3.14159 on 2010-08-11 at 14:02 |
|
|
|
|
|
|
#224 |
|
Aug 2006
175B16 Posts |
|
|
|
|
|
|
#225 | |
|
May 2010
Prime hunting commission.
32208 Posts |
Testing for primes: Expected result, every base registers prime.
Quote:
The base counter naturally followed. Rounding errors? Why did you make a program that was inaccurate? !
Last fiddled with by 3.14159 on 2010-08-11 at 14:04 |
|
|
|
|
|
|
#226 | |
|
Aug 2006
3·1,993 Posts |
Quote:
I don't understand what you mean by or if I'm supposed to respond to it. Last fiddled with by CRGreathouse on 2010-08-11 at 14:10 |
|
|
|
|
|
|
#227 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
I'm sure people could ask you that same question
Last fiddled with by science_man_88 on 2010-08-11 at 14:09 |
|
|
|
|
|
#228 | |||
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Quote:
Quote:
Last fiddled with by 3.14159 on 2010-08-11 at 14:27 |
|||
|
|
|
|
|
#229 |
|
Aug 2006
3×1,993 Posts |
True enough. My program gave the floating-point number closest to the exact quantity, but Pi's program suffers from catastrophic cancellation that may give wildly inaccurate results for large enough numbers and small enough precision. (They don't have to be that large or that low, even!)
|
|
|
|
|
|
#231 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
so the basic idea I have of the process required is:
1)read for updates 2)send request to next part of script 3)find function names that can be understood in the text (if none exist give error and/or print questions the script has about the request) 4)print out code for functions if they are found to be in the database. 5) post code to Mersenne forums website. Last fiddled with by science_man_88 on 2010-08-11 at 14:24 |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |