Pedro Fortuny Ayuso on Fri, 14 Nov 2014 09:49:43 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

FpM_powu and gp2c-run


Hi,

After all of yesterday's help, I can run my modular
power of matrices quite fast. Now I am trying to make
it even faster using gp2c-run. But to no avail:

bash-4.3$ gp2c-run t.gp
Warning:t.gp:2: variable undeclared
s
Warning:t.gp:3: variable undeclared
r
                                     GP/PARI CALCULATOR Version 2.5.5 (released)
                             i386 running darwin (x86-64/GMP-5.1.2 kernel) 64-bit version
                              compiled: Dec  3 2013, gcc-4.5.4 (MacPorts gcc45 4.5.4_6)
                                  (readline not compiled in, extended help enabled)

                                        Copyright (C) 2000-2013 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 = 8000000, primelimit = 500509
  ***   at top-level: install("FpM_powu","
  ***                 ^--------------------
  *** install: can't find symbol 'FpM_powu' in dynamic symbol table of process.
  ***   Break loop: type 'break' to go back to GP
break>

However, the script (which I am attaching underneath) runs with
no problem under gp (read ("t.gp") runs it).

--------
cat < t.gp

install(FpM_powu, GLG);
s=[1,2;3,4];
r=FpM_powu(s, 32767, 65537)

--------
Any ideas? 

Darwin MBP-pfortuny.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386 i386


Thanks in advance,


Pedro.



-- 
Pedro Fortuny Ayuso
http://pfortuny.net

[ Dirección nueva: pedro@pfortuny.net     ]
[ Todas las anteriores siguen funcionando ]

EPIG, Campus de Viesques, Gijon
Dpto. de Matematicas
Universidad de Oviedo