![]() |
![]() |
#1 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
26·31 Posts |
![]()
Hi,
I can't find an equivalent to IntegerExponent function in Pari-GP. Is there one?, or should One write his own routine? Thanks in advance https://reference.wolfram.com/langua...rExponent.html http://math.mit.edu/~brubaker/PARI/PARIrefcard.pdf |
![]() |
![]() |
![]() |
#2 | |
Sep 2002
Database er0rr
2×7×257 Posts |
![]()
?logint
Quote:
Code:
? logint(139,2) 7 ![]() Last fiddled with by paulunderwood on 2016-04-09 at 21:16 |
|
![]() |
![]() |
![]() |
#3 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
26×31 Posts |
![]()
Thank you paulunderwood,
That was fast. For the record that function is missing from the reference card that I linked. That saves me quite a bit of time. Thank you again. |
![]() |
![]() |
![]() |
#4 | ||
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
![]() Quote:
Quote:
Last fiddled with by science_man_88 on 2016-04-09 at 21:30 |
||
![]() |
![]() |
![]() |
#5 | |
"Rashid Naimi"
Oct 2015
Remote to Here/There
198410 Posts |
![]() Quote:
That would-have-been/is as good in saving me time. ![]() Last fiddled with by a1call on 2016-04-09 at 21:32 |
|
![]() |
![]() |
![]() |
#6 |
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
![]()
of course if it's used for factoring factor() can do it for all primes you might be able to save yourself time with that also then of course there's factorint() (though that one doesn't have an upper limit to my knowledge and only factors using integers. if you want a list of divisors that are powers there's divsors() and ispower() ( or even fordiv in some versions) if you want to check if something is square free there's an issquare free function etc. edit: and of course if something is squarefree it is also power-free since all powers greater than squares that could divide it are not squarefree.
Last fiddled with by science_man_88 on 2016-04-09 at 21:39 |
![]() |
![]() |
![]() |
#7 |
Sep 2002
Database er0rr
E0E16 Posts |
![]() |
![]() |
![]() |
![]() |
#8 | |
"Rashid Naimi"
Oct 2015
Remote to Here/There
26×31 Posts |
![]() Quote:
My current use is not for factoring. Just need to formulate the highest integer power to run my WDP code on Pari-gp. The only thing I need to figure out now is how to use variables. |
|
![]() |
![]() |
![]() |
#9 |
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
![]()
probably would depend on scope and if they are predefined values at first. not to mention if you want to do things in parallel global variables would be NOT a great choice. I'm not even sure what WDP is. one thing that comes to mind is in theory primes are the simplest case if they can't divide by prime power's they don't divide by any power other than 1^n which is always 1.
|
![]() |
![]() |
![]() |
#10 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
26·31 Posts |
![]()
Well variables seem straight forward.
Is there a way to save/load scripts/routines/programs? Thank you. ETA: WDP = Wolfram Development Platform: https://develop.wolframcloud.com/app/ Last fiddled with by a1call on 2016-04-09 at 21:51 |
![]() |
![]() |
![]() |
#11 | |
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
An equivalent problem for factorization of large numbers | HellGauss | Math | 5 | 2012-04-12 14:01 |
PIV Effective Equivalent curiosities... | petrw1 | Software | 0 | 2009-12-05 04:41 |
Dual Core P95 64Bit P4 Equivalent problem | g0ods | Software | 9 | 2009-09-15 14:12 |
Is there a finite-field equivalent to the DWT? | fivemack | Math | 4 | 2008-03-27 17:58 |
Equivalent code | dsouza123 | Programming | 25 | 2005-10-08 05:10 |