![]() |
|
|
#276 |
|
Aug 2006
3·1,993 Posts |
Glad to hear about the addhelp. It will, uh, help in the future.
Your function isSPRP as described in post #270 is not the indicator function for the strong probable primes, as the name would suggest. Instead it is a probable-prime test incorporating the strong test and trial divison. Your function isPRP as listed in post #252 does not check if a number is a probable prime, as the name suggests, but instead checks if the number is a strong probable prime. Last fiddled with by CRGreathouse on 2010-08-11 at 19:41 |
|
|
|
|
|
#277 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-08-11 at 21:00 |
|
|
|
|
|
|
#278 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
so for example if someone asks to find the first n Mersenne Numbers in Mersenne(n) lets say the addhelp contains first n Mersenne Numbers theres a match found it know that's the one it should print. now they may use any variable so I wonder if we can say don't check for n check for anything in this position relative to the first part of this string. would this help to decipher? the hard part is we may need a lot of / or saying switch this synonyms addhelp from this term to this other set of them is there a way ? Last fiddled with by science_man_88 on 2010-08-11 at 21:16 |
|
|
|
|
|
|
#279 | |
|
Aug 2006
3×1,993 Posts |
Quote:
Code:
>?DickmanRho Estimates the value of the Dickman rho function. For x <= 3 the exact values are used, up to rounding; up to 15 the value is interpolated using known values and rhoest; after 15 rhoest is used, along with a correction factor based on the last value in rhoTable. >?rhoest de Bruijn's asymptotic approximation for rho(x), rewritten as in van de Lune and Wattel 1969. Curiously, their paper shows values for this estimate that differ from those calculated by this function, often as soon as the second decimal place -- but as the difference is in the direction of the true value, I have not looked further into this. |
|
|
|
|
|
|
#280 | ||
|
Aug 2006
3·1,993 Posts |
Quote:
![]() Quote:
Frankly, Perl would probably be better suited to this task than Pari -- Pari is bad at text processing, and that's where Perl shines. |
||
|
|
|
|
|
#281 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
how could you make a synoym table in pari ? I know for a function I do function1 = function2 but how do can i do it for addhelp technically it could be more than one help file if i can call more than one. how can I make a synonym table for changing one or 2 words in a addhelp if we go for short names.
|
|
|
|
|
|
#282 |
|
Aug 2006
3·1,993 Posts |
There's no special way to do that. And given how painful string operations are in Pari, I wouldn't recommend doing them at all if you can avoid it.
|
|
|
|
|
|
#283 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Code:
addhelp(fun,Vec(?foo) - "foo." + "fun.") Code:
(18:38) gp > ?foo a function called foo. Last fiddled with by science_man_88 on 2010-08-11 at 21:44 |
|
|
|
|
|
#284 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
another thing I thought of can we use function1=function2 so it writes the function name without _ in each addhelp ?
|
|
|
|
|
|
#285 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
If Perl is a way to do this then use it at least up to printing the functions have the Perl executable pass pari the function names to print out maybe or maybe the Perl program can read the script file(s) involved and print it to a command prompt. the point is it's useful. if a Perl expert can give us code similar to C maybe we can convert to Pari later on.
|
|
|
|
|
|
#286 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
could we not make the read post into a vector of strings then sort from most important to least important according to a list/vector ?
oh by the way i found a typo in ?vecsort fonction-> function if I know what I'm talking about. Last fiddled with by science_man_88 on 2010-08-11 at 23:18 |
|
|
|
![]() |
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 |