mersenneforum.org  

Go Back   mersenneforum.org > Math Stuff > Computer Science & Computational Number Theory > PARI/GP

Reply
 
Thread Tools
Old 2010-08-19, 20:58   #716
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

can you make vectors of vectored strings ? if so we can do a find and replace like operation such that Pari can code it.
science_man_88 is offline   Reply With Quote
Old 2010-08-19, 20:59   #717
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by 3.14159
Nevermind that. I'm going to go to Generalized proths, using factorial and or primorial powers, just need a larger base range. Anything for that?
To continue endlessly quoting myself...
PFGW's factor switch helps out for larger b.

Quote:
Originally Posted by 3.14159
I can never keep track of all the names (especially since some are contradictory... e.g. several definitions for generalized Fermats). What form are these?
Generalized proths = k * bn + 1 where b is any integer ≥ 2.

And: Please, show where I was self-contradictory.

Last fiddled with by 3.14159 on 2010-08-19 at 21:00
3.14159 is offline   Reply With Quote
Old 2010-08-19, 21:22   #718
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

got the vector within vector worked out now I just need to check them out lol.

got it working with one catch need to quotes around the phrase in the input lol. but then unless we insert them and check it will be hard.

oh and if you accidentally insert anything that gets typed over it wrecks it it seems.

Last fiddled with by science_man_88 on 2010-08-19 at 21:37
science_man_88 is offline   Reply With Quote
Old 2010-08-19, 21:47   #719
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Code:
try = [Vec(x="string"),Vec(x="suck"),Vec(x="primes")]
and

Code:
x=3;y=Vec(input());if(y==try[x],print("really"))
try it out if you want remember quotes and hopefully no messing up to make it work.
science_man_88 is offline   Reply With Quote
Old 2010-08-19, 22:28   #720
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Generalized proths = k * bn + 1 where b is any integer ≥ 2.
You can use srsieve for those.

Quote:
Originally Posted by 3.14159 View Post
And: Please, show where I was self-contradictory.
I made no such accusation.
CRGreathouse is offline   Reply With Quote
Old 2010-08-19, 22:29   #721
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
Code:
try = [Vec(x="string"),Vec(x="suck"),Vec(x="primes")]
You probably want
Code:
try = [Vec("string"),Vec("suck"),Vec("primes")]
CRGreathouse is offline   Reply With Quote
Old 2010-08-19, 22:33   #722
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
You probably want
Code:
try = [Vec("string"),Vec("suck"),Vec("primes")]

no it gave me a too few arguments error that way

got it working never mind still needed the quotes.

Last fiddled with by science_man_88 on 2010-08-19 at 22:38
science_man_88 is offline   Reply With Quote
Old 2010-08-19, 22:47   #723
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

how do i check word/phrase by word/phrase through text if i need parentheses everywhere. get that under control then we can at least make a limited version.

basically we need a find and replace script to edit the text to something we can make Pari understand.
science_man_88 is offline   Reply With Quote
Old 2010-08-19, 22:49   #724
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

we need to build a gp2c like exe that is more of a nl2gp (natural language to pari) compiler.
science_man_88 is offline   Reply With Quote
Old 2010-08-19, 23:05   #725
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Code:
y=Vec(input());for(x=1,3,forstep(i=1,#y,#try[x],if(y[i]==try[x][1],print("really"))))
what I've got working.

had to make to:

Code:
y=Vec(input());for(x=1,3,for(i=1,#y,if(y[i]==try[x][1],print("really"))))

Last fiddled with by science_man_88 on 2010-08-19 at 23:11
science_man_88 is offline   Reply With Quote
Old 2010-08-19, 23:39   #726
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

Quote:
Originally Posted by CRGreathouse
You can use srsieve for those.
Or NewPGen.

Quote:
Originally Posted by CRGreathouse
I made no such accusation.
You said I made several contradictory names for various prime forms, and you were therefore accusing me of being internally inconsistent. Please show where I am internally inconsistent.
3.14159 is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 23:06.


Fri Aug 6 23:06:18 UTC 2021 up 14 days, 17:35, 1 user, load averages: 4.38, 3.93, 3.93

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.