Following session explain problem (unable to display nurical values
when all required values have been defined):

sage: abc
3150/(2000*(proofStrain + 5.00000000000000e-6*f_y/gamma_ms) + 7)
sage: print(proofStrain,f_y,gamma_ms)
(0.002, 250, 1.1499999999999999)
sage: abc.n <tab>
abc.n                    abc.nintegrate
abc.number_of_arguments  abc.numerical_approx
abc.nintegral            abc.norm                 abc.numerator
sage: abc.n(digits=5)

gave error (reproduced below signature.) How to make use of that error
message, and how to solve problem?

-- 
H.S.Rai

=======================================================

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (6, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (6, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (6, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (6, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (6, 0))

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/examples/latex_embed/bookRai.py
in <module>()
----> 1
      2
      3
      4
      5

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in numerical_approx(self, prec, digits)
   1319         except TypeError:
   1320             # try to return a complex result
-> 1321             approx = self._complex_mpfr_field_(ComplexField(prec))
   1322
   1323         return approx

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _complex_mpfr_field_(self, field)
   4883             0
   4884         """
-> 4885         return self._convert(field)
   4886
   4887     def _complex_double_(self, field):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _convert(self, typ)
   4817                 raise
   4818             else:
-> 4819                 return typ(g)
   4820         return self._operator(*fops)
   4821

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in __call__(self, x, im)
    206         if im is not None:
    207             x = x, im
--> 208         return Parent.__call__(self, x)
    209
    210     def _element_constructor_(self, x):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:3732)()
    303
    304
--> 305
    306
    307

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.__call__ (sage/structure/parent.c:3619)()
    294
    295
--> 296
    297
    298

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:2622)()
     74
     75
---> 76
     77
     78

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps._call_
(sage/structure/coerce_maps.c:2537)()
     69
     70
---> 71
     72
     73

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in _element_constructor_(self, x)
    229
    230             try:
--> 231                 return x._complex_mpfr_field_( self )
    232             except AttributeError:
    233                 pass

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _complex_mpfr_field_(self, field)
   4883             0
   4884         """
-> 4885         return self._convert(field)
   4886
   4887     def _complex_double_(self, field):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _convert(self, typ)
   4811         """
   4812         try:
-> 4813             fops = [typ(op) for op in self._operands]
   4814         except TypeError:
   4815             g = self.simplify()

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in __call__(self, x, im)
    206         if im is not None:
    207             x = x, im
--> 208         return Parent.__call__(self, x)
    209
    210     def _element_constructor_(self, x):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:3732)()
    303
    304
--> 305
    306
    307

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.__call__ (sage/structure/parent.c:3619)()
    294
    295
--> 296
    297
    298

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:2622)()
     74
     75
---> 76
     77
     78

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps._call_
(sage/structure/coerce_maps.c:2537)()
     69
     70
---> 71
     72
     73

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in _element_constructor_(self, x)
    229
    230             try:
--> 231                 return x._complex_mpfr_field_( self )
    232             except AttributeError:
    233                 pass

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _complex_mpfr_field_(self, field)
   4883             0
   4884         """
-> 4885         return self._convert(field)
   4886
   4887     def _complex_double_(self, field):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _convert(self, typ)
   4811         """
   4812         try:
-> 4813             fops = [typ(op) for op in self._operands]
   4814         except TypeError:
   4815             g = self.simplify()

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in __call__(self, x, im)
    206         if im is not None:
    207             x = x, im
--> 208         return Parent.__call__(self, x)
    209
    210     def _element_constructor_(self, x):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:3732)()
    303
    304
--> 305
    306
    307

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.__call__ (sage/structure/parent.c:3619)()
    294
    295
--> 296
    297
    298

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:2622)()
     74
     75
---> 76
     77
     78

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps._call_
(sage/structure/coerce_maps.c:2537)()
     69
     70
---> 71
     72
     73

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in _element_constructor_(self, x)
    229
    230             try:
--> 231                 return x._complex_mpfr_field_( self )
    232             except AttributeError:
    233                 pass

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _complex_mpfr_field_(self, field)
   4883             0
   4884         """
-> 4885         return self._convert(field)
   4886
   4887     def _complex_double_(self, field):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _convert(self, typ)
   4811         """
   4812         try:
-> 4813             fops = [typ(op) for op in self._operands]
   4814         except TypeError:
   4815             g = self.simplify()

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in __call__(self, x, im)
    206         if im is not None:
    207             x = x, im
--> 208         return Parent.__call__(self, x)
    209
    210     def _element_constructor_(self, x):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:3732)()
    303
    304
--> 305
    306
    307

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.__call__ (sage/structure/parent.c:3619)()
    294
    295
--> 296
    297
    298

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:2622)()
     74
     75
---> 76
     77
     78

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps._call_
(sage/structure/coerce_maps.c:2537)()
     69
     70
---> 71
     72
     73

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in _element_constructor_(self, x)
    229
    230             try:
--> 231                 return x._complex_mpfr_field_( self )
    232             except AttributeError:
    233                 pass

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _complex_mpfr_field_(self, field)
   4883             0
   4884         """
-> 4885         return self._convert(field)
   4886
   4887     def _complex_double_(self, field):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _convert(self, typ)
   4811         """
   4812         try:
-> 4813             fops = [typ(op) for op in self._operands]
   4814         except TypeError:
   4815             g = self.simplify()

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in __call__(self, x, im)
    206         if im is not None:
    207             x = x, im
--> 208         return Parent.__call__(self, x)
    209
    210     def _element_constructor_(self, x):

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:3732)()
    303
    304
--> 305
    306
    307

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/parent.so
in sage.structure.parent.__call__ (sage/structure/parent.c:3619)()
    294
    295
--> 296
    297
    298

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:2622)()
     74
     75
---> 76
     77
     78

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/structure/coerce_maps.so
in sage.structure.coerce_maps._call_
(sage/structure/coerce_maps.c:2537)()
     69
     70
---> 71
     72
     73

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/rings/complex_field.pyc
in _element_constructor_(self, x)
    229
    230             try:
--> 231                 return x._complex_mpfr_field_( self )
    232             except AttributeError:
    233                 pass

/home/hsrai/CAS/sage-3.1.4-pentiumM-ubuntu32bit-x86-i686-Linux/local/lib/python2.5/site-packages/sage/calculus/calculus.pyc
in _complex_mpfr_field_(self, field)
   1472
   1473     def _complex_mpfr_field_(self, field):
-> 1474         raise TypeError
   1475
   1476     def _complex_double_(self, C):

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to