![]() |
|
|
#716 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
can you make vectors of vectored strings ? if so we can do a find and replace like operation such that Pari can code it.
|
|
|
|
|
|
#717 | ||
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
PFGW's factor switch helps out for larger b. Quote:
And: Please, show where I was self-contradictory. Last fiddled with by 3.14159 on 2010-08-19 at 21:00 |
||
|
|
|
|
|
#718 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
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 |
|
|
|
|
|
#719 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Code:
try = [Vec(x="string"),Vec(x="suck"),Vec(x="primes")] Code:
x=3;y=Vec(input());if(y==try[x],print("really"))
|
|
|
|
|
|
#720 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#721 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#722 | |
|
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
Quote:
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 |
|
|
|
|
|
|
#723 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
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. |
|
|
|
|
|
#724 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
we need to build a gp2c like exe that is more of a nl2gp (natural language to pari) compiler.
|
|
|
|
|
|
#725 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
y=Vec(input());for(x=1,3,forstep(i=1,#y,#try[x],if(y[i]==try[x][1],print("really"))))
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 |
|
|
|
|
|
#726 | ||
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Quote:
|
||
|
|
|
![]() |
| 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 |