mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-12-03, 19:38   #1970
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
Oops, missed the closed quote. I corrected my above post.
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)
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.

Last fiddled with by science_man_88 on 2010-12-03 at 19:52
science_man_88 is offline   Reply With Quote
Old 2010-12-03, 19:58   #1971
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

it's also why the pipes don't work lol.
science_man_88 is offline   Reply With Quote
Old 2010-12-03, 20:06   #1972
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Code:
(15:57)>?0

FaR                     Pascals_triangle_puzzle RLE                     guess_the_number
guessnumber2            lucaslehmer             palindrome              pascals_triangle
repeat                  reverse                 sumdigits
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()))))

Last fiddled with by science_man_88 on 2010-12-03 at 20:10
science_man_88 is offline   Reply With Quote
Old 2010-12-03, 20:13   #1973
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
it's also why the pipes don't work lol.
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.
CRGreathouse is offline   Reply With Quote
Old 2010-12-03, 20:16   #1974
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
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.
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.
science_man_88 is offline   Reply With Quote
Old 2010-12-03, 20:17   #1975
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
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()))))
OK, well just format it nicely (or you'll get {{lines too long}} like here) and put it up there.
CRGreathouse is offline   Reply With Quote
Old 2010-12-03, 20:21   #1976
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
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.
It doesn't matter, the extended help (??) won't work no matter what I put there.
CRGreathouse is offline   Reply With Quote
Old 2010-12-03, 20:22   #1977
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

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]]
CRGreathouse is offline   Reply With Quote
Old 2010-12-03, 20:30   #1978
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

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.
not sure which is more annoying constantly restarting PARI or all the editing lol.
science_man_88 is offline   Reply With Quote
Old 2010-12-03, 20:32   #1979
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 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]]
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.

Last fiddled with by science_man_88 on 2010-12-03 at 20:59
science_man_88 is offline   Reply With Quote
Old 2010-12-03, 21:07   #1980
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
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.
not sure which is more annoying constantly restarting PARI or all the editing lol.
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.
CRGreathouse is offline   Reply With Quote
Reply

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

All times are UTC. The time now is 22:51.


Fri Aug 6 22:51:17 UTC 2021 up 14 days, 17:20, 1 user, load averages: 3.65, 4.04, 3.89

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.