cino hilliard on Mon, 27 Apr 2009 01:47:43 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
RE: Accessing the ellsea function from Pari 2.4.3 (svn-r11688) |
Hi, The system and extern functions do not appear to be working in 2.4.2 for windows 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 = 10000000 (10:33:53) gp > system("dir") (10:38:36) gp > extern("prime 37000000000") (10:40:27) gp > prime2(37000000000) (10:40:41) gp > (11:00:59) gp > extern("cls.bat") (11:21:17) gp > system("cls.bat") does nothing For Version 2.3.4 Reading GPRC: .gprc ...Done. GP/PARI CALCULATOR Version 2.3.4 (released) i686 running cygwin (ix86/GMP-4.2.1 kernel) 32-bit version compiled: Jul 12 2008, gcc-3.4.4 (cygming special, gdc 0.12, using dmd 0.125) (readline v5.2 enabled, extended help available) 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 = 10000000 (10:47:07) gp > system("dir") !.exe fib3.gp primex.xls !digits.gp fibdiv.gp primex2.txt 10to11.gp firstdigit.gp primex2x3.gp 2mfact.gp flip69.gp primexbas.bas 2p-1.gp flipover.gp primexbas.exe 2ton!.gp floor.gp primexbas.obj 2tonpk.gp floorgp.gp primexbasqf.bas ... ... (10:49:46) gp > extern("prime.exe 108000000000") %2 = 2990223660007 (10:52:11) gp > prime.exe is a gcc file that reads a 866 gig file of primes < 3 trillion. Too bad we can't open and read files in the calculator like in C. I have to use this to read my list of primes. prime2(n) = \\ the nth prime using c:\sieve\prime.exe in the path calling \\ m:\sievedata\prime2-3trill.bin" { local(x,s); n=round(n); s=concat("prime ",Str(n)); extern(s); } (11:12:08) gp > (11:12:08) gp > (11:12:08) gp > (11:12:08) gp > (11:12:08) gp > (11:12:08) gp > system("cls.bat") (11:12:31) gp > (11:18:22) gp > cls (11:19:45) gp > cls.bat clears the screen in gp. It also places the cursor at top LHC and the scroll bar to the top. put this in util2.gp cls() = system("cls.bat"); must include the bat extern("cls.bat") does nothing here either. At first, I thought forcing the simicolins after each line was ok but I really don't like it any more. I like the old way much better. Cino hilliard |