Michael Somos on Mon, 26 Aug 2002 19:52:16 -0400


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

gp: forbidden division t_INT / t_STR


pari-dev,

This is a puzzling bug because the two definitions of 'calc()' are
exactly the same and it is never even used. Note that if it is only
defined once, the error does not happen. Very strange indeed.

============================================================================
Reading GPRC: /u/home/somos/.gprc ...Done.

          GP/PARI CALCULATOR Version 2.2.4 (development CHANGES-1.491)
                 UltraSparc (MicroSparc kernel) 32-bit version
              (readline v2.2 enabled, extended help not available)

                       Copyright (C) 2002 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.

   realprecision = 28 significant digits
   seriesprecision = 16 significant terms
   format = g0.28

parisize = 4000000, primelimit = 500000
? calc(f,x="")=eval(Str(f"(x)"))
? calc(f,x="")=eval(Str(f"(x)"))
? 1/x+O((1-x)^3)
  ***   forbidden division t_INT / t_STR.
? quit
Goodbye!
============================================================================

Shalom, Michael