![]() |
[QUOTE=CRGreathouse;239871]Oops, missed the closed quote. I corrected my above post.[/QUOTE]
I realized that and corrected it I now get: [CODE]Reading GPRC: /cygdrive/c/Program Files/PARI/.gprc ...Done. GP/PARI CALCULATOR Version 2.4.2 (development CHANGES-1.1971) i686 running cygwin (ix86/GMP-4.2.1 kernel) 32-bit version compiled: Dec 23 2007, gcc-3.4.4 (cygming special, gdc 0.12, using dmd 0.125) (readline v5.2 enabled, extended help enabled) Copyright (C) 2000-2006 The PARI Group PARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER. Type ? for help, \q to quit. Type ?12 for how to get moral (and possibly technical) support. parisize = 4000000, primelimit = 500000 *** error opening input file: codes.gp ^-------- ... skipping file 'codes.gp' (15:37) [/CODE] I had to get codes.gp in E for it to work I have to find a way to stop this from needing it that way sucks lol. |
it's also why the pipes don't work lol.
|
[CODE](15:57)>?0
FaR Pascals_triangle_puzzle RLE guess_the_number guessnumber2 lucaslehmer palindrome pascals_triangle repeat reverse sumdigits[/CODE] I forgot to submit: [CODE]guessnumber2(b)=my(c=0,d=b,a=0);for(x=1,b,for(y=1,b,if(a<c||a==c||a==d||a>d,a=random(b),break()));print("I guess "a" am I h,l,or e ?");g=input();if(g==h,d=a,if(g==l,c=a,if(g==e,break()))))[/CODE] |
[QUOTE=science_man_88;239874]it's also why the pipes don't work lol.[/QUOTE]
The pipes don't work because you're on Windows. The file won't be read if it's in a different directory from where you start GP unless you give an absolute location, e.g., read "E:/codes.gp" or read "C:\Program Files\PARI\codes.gp" I don't remember how the slashes need to be for this to work; one of /, \, or \\. Try them until one works. :smile: |
[QUOTE=CRGreathouse;239878]The pipes don't work because you're on Windows. The file won't be read if it's in a different directory from where you start GP unless you give an absolute location, e.g.,
read "E:/codes.gp" or read "C:\Program Files\PARI\codes.gp" I don't remember how the slashes need to be for this to work; one of /, \, or \\. Try them until one works. :smile:[/QUOTE] codes.gp has a copy in my PARI folder it didn't work, you gave an exact address of users.pdf that didn't work. |
[QUOTE=science_man_88;239876]I forgot to submit:
[CODE]guessnumber2(b)=my(c=0,d=b,a=0);for(x=1,b,for(y=1,b,if(a<c||a==c||a==d||a>d,a=random(b),break()));print("I guess "a" am I h,l,or e ?");g=input();if(g==h,d=a,if(g==l,c=a,if(g==e,break()))))[/CODE][/QUOTE] OK, well just format it nicely (or you'll get {{lines too long}} like [url=http://rosettacode.org/mw/index.php?title=Guess_the_number/With_feedback&diff=96548&oldid=96527]here[/url]) and put it up there. |
[QUOTE=science_man_88;239879]codes.gp has a copy in my PARI folder it didn't work, you gave an exact address of users.pdf that didn't work.[/QUOTE]
It doesn't matter, the extended help (??) won't work no matter what I put there. |
You might also consider creating a user page, maybe something like
[code]{{mylangbegin}} {{mylang|PARI/GP|intermediate}} {{mylang|x86 assembly|beginner}} {{mylangend}} I submitted a solution for these tasks: * [[Guess the number/With feedback]] * [[Pascal's triangle]] * [[Pascal's triangle/Puzzle]] * [[Rate counter]] * [[Reverse a string]] * [[Run-length encoding]][/code] |
[CODE](16:18)>??
*** [pipe:] 'C:\Program Files\PARI\doc\users.pdf -fromgp '@1'' failed. (16:20)>?? *** [pipe:] 'C:Program FilesPARIdocusers.pdf -fromgp '@1'' failed. (16:21)>?? *** [pipe:] 'C:Program Files/PARI/doc/users.pdf -fromgp '@1'' failed. (16:22)>?? *** [pipe:] 'C:\Program Files/PARI/doc/users.pdf -fromgp '@1'' failed. (16:25)>?? *** [pipe:] 'C:/Program Files/PARI/doc/users.pdf -fromgp '@1'' failed. (16:27)>?? *** [pipe:] 'C:/Program Files\PARI\doc\users.pdf -fromgp '@1'' failed.[/CODE] not sure which is more annoying constantly restarting PARI or all the editing lol. |
[QUOTE=CRGreathouse;239882]You might also consider creating a user page, maybe something like
[code]{{mylangbegin}} {{mylang|PARI/GP|intermediate}} {{mylang|x86 assembly|beginner}} {{mylangend}} I submitted a solution for these tasks: * [[Guess the number/With feedback]] * [[Pascal's triangle]] * [[Pascal's triangle/Puzzle]] * [[Rate counter]] * [[Reverse a string]] * [[Run-length encoding]][/code][/QUOTE] God you just want me away from the forum don't you lol. and I never completed the RLE lol. I've also tried css javascript and html and c and php but only the first 4 ever made it and now I forgot most of them I should start using them lol. also ASM beginner is a understatement lol, I can't get anything I've learned from books to work but if I ever do maybe it will be worth it. |
[QUOTE=science_man_88;239884][CODE](16:18)>??
*** [pipe:] 'C:\Program Files\PARI\doc\users.pdf -fromgp '@1'' failed. (16:20)>?? *** [pipe:] 'C:Program FilesPARIdocusers.pdf -fromgp '@1'' failed. (16:21)>?? *** [pipe:] 'C:Program Files/PARI/doc/users.pdf -fromgp '@1'' failed. (16:22)>?? *** [pipe:] 'C:\Program Files/PARI/doc/users.pdf -fromgp '@1'' failed. (16:25)>?? *** [pipe:] 'C:/Program Files/PARI/doc/users.pdf -fromgp '@1'' failed. (16:27)>?? *** [pipe:] 'C:/Program Files\PARI\doc\users.pdf -fromgp '@1'' failed.[/CODE] not sure which is more annoying constantly restarting PARI or all the editing lol.[/QUOTE] The restarting was only trying to track down the error; you shouldn't need to do that anymore. But do stop typing ??; it won't work for you. |
| All times are UTC. The time now is 23:07. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.