Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

maybe

pari.set_real_precision(prec)

maybe

pari.set_real_precision(prec)

Get its documentation with ?:

sage: pari.set_real_precision?
Signature:      pari.set_real_precision(n)
Docstring:
   Sets the PARI default real precision in decimal digits.

   This is used both for creation of new objects from strings and for
   printing. It is the number of digits *IN DECIMAL* in which real
   numbers are printed. It also determines the precision of objects
   created by parsing strings (e.g. pari('1.2')), which is *not* the
   normal way of creating new PARI objects in CyPari2. It has *no*
   effect on the precision of computations within the pari library.

   Returns the previous PARI real precision.

   See also: "set_real_precision_bits()" to set the precision in bits.

   Examples:

   >>> import cypari2
   >>> pari = cypari2.Pari()
   >>> pari.set_real_precision(60)
   15
   >>> pari('1.2')
   1.20000000000000000000000000000000000000000000000000000000000
   >>> pari.set_real_precision(15)
   60
Init docstring: Initialize self.  See help(type(self)) for accurate signature.
File:
Type:           method

maybe

pari.set_real_precision(prec)

Get its documentation with ?:

sage: pari.set_real_precision?
Signature:      pari.set_real_precision(n)
Docstring:
   Sets the PARI default real precision in decimal digits.

   This is used both for creation of new objects from strings and for
   printing. It is the number of digits *IN DECIMAL* in which real
   numbers are printed. It also determines the precision of objects
   created by parsing strings (e.g. pari('1.2')), which is *not* the
   normal way of creating new PARI objects in CyPari2. It has *no*
   effect on the precision of computations within the pari library.

   Returns the previous PARI real precision.

   See also: "set_real_precision_bits()" to set the precision in bits.

   Examples:

   >>> import cypari2
   >>> pari = cypari2.Pari()
   >>> pari.set_real_precision(60)
   15
   >>> pari('1.2')
   1.20000000000000000000000000000000000000000000000000000000000
   >>> pari.set_real_precision(15)
   60
Init docstring: Initialize self.  See help(type(self)) for accurate signature.
File:
Type:           method

Try typing pari.set and pressing the TAB key for similar functions.

sage: pari.set<TAB>
          pari.set_debug_level         pari.set_series_precision    pari.setisset                pari.setsearch
          pari.set_real_precision      pari.setbinop                pari.setminus                pari.setunion
          pari.set_real_precision_bits pari.setintersect            pari.setrand

maybe

pari.set_real_precision(prec)

Get its documentation with ?:

sage: pari.set_real_precision?
Signature:      pari.set_real_precision(n)
Docstring:
   Sets the PARI default real precision in decimal digits.

   This is used both for creation of new objects from strings and for
   printing. It is the number of digits *IN DECIMAL* in which real
   numbers are printed. It also determines the precision of objects
   created by parsing strings (e.g. pari('1.2')), which is *not* the
   normal way of creating new PARI objects in CyPari2. It has *no*
   effect on the precision of computations within the pari library.

   Returns the previous PARI real precision.

   See also: "set_real_precision_bits()" to set the precision in bits.

   Examples:

   >>> import cypari2
   >>> pari = cypari2.Pari()
   >>> pari.set_real_precision(60)
   15
   >>> pari('1.2')
   1.20000000000000000000000000000000000000000000000000000000000
   >>> pari.set_real_precision(15)
   60
Init docstring: Initialize self.  See help(type(self)) for accurate signature.
File:
Type:           method

Try typing Type pari.set and pressing press the TAB key for a list of similar functions.

sage: pari.set<TAB>
          pari.set_debug_level         pari.set_series_precision    pari.setisset   pari.set
             pari.set_debug_level
             pari.set_real_precision
             pari.set_real_precision_bits
             pari.set_series_precision
             pari.setbinop
             pari.setintersect
             pari.setisset
             pari.setminus
             pari.setrand
             pari.setsearch
          pari.set_real_precision      pari.setbinop                pari.setminus                pari.setunion
          pari.set_real_precision_bits pari.setintersect            pari.setrand