mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   PARI/GP (https://www.mersenneforum.org/forumdisplay.php?f=155)
-   -   PARI's commands (https://www.mersenneforum.org/showthread.php?t=13636)

science_man_88 2010-08-19 20:58

can you make vectors of vectored strings ? if so we can do a find and replace like operation such that Pari can code it.

3.14159 2010-08-19 20:59

[QUOTE=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?
[/QUOTE]

To continue endlessly quoting myself...
PFGW's factor switch helps out for larger b.

[QUOTE=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?
[/QUOTE]

Generalized proths = k * b[sup]n[/sup] + 1 where b is any integer ≥ 2.

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

science_man_88 2010-08-19 21:22

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.

science_man_88 2010-08-19 21:47

[CODE]try = [Vec(x="string"),Vec(x="suck"),Vec(x="primes")][/CODE]

and

[CODE]x=3;y=Vec(input());if(y==try[x],print("really"))[/CODE]

try it out if you want remember quotes and hopefully no messing up to make it work.

CRGreathouse 2010-08-19 22:28

[QUOTE=3.14159;226265]Generalized proths = k * b[sup]n[/sup] + 1 where b is any integer ≥ 2.[/QUOTE]

You can use srsieve for those.

[QUOTE=3.14159;226265]And: Please, show where I was self-contradictory.[/QUOTE]

I made no such accusation.

CRGreathouse 2010-08-19 22:29

[QUOTE=science_man_88;226281][CODE]try = [Vec(x="string"),Vec(x="suck"),Vec(x="primes")][/CODE][/QUOTE]

You probably want
[CODE]try = [Vec("string"),Vec("suck"),Vec("primes")][/CODE]

science_man_88 2010-08-19 22:33

[QUOTE=CRGreathouse;226294]You probably want
[CODE]try = [Vec("string"),Vec("suck"),Vec("primes")][/CODE][/QUOTE]


no it gave me a too few arguments error that way

got it working never mind still needed the quotes.

science_man_88 2010-08-19 22:47

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 2010-08-19 22:49

we need to build a gp2c like exe that is more of a nl2gp (natural language to pari) compiler.

science_man_88 2010-08-19 23:05

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

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"))))[/CODE]

3.14159 2010-08-19 23:39

[QUOTE=CRGreathouse]You can use srsieve for those.
[/QUOTE]

Or NewPGen.

[QUOTE=CRGreathouse]I made no such accusation.
[/QUOTE]

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.


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

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