1.2; 1.2  1.2e-1000; 0  ctrl("bigfloat",1); 1  1.2e-1000; 1.20000000000000000513 E-1000A rational number shall be converted automatically into a double float number before the operation with another double float number and the result shall be computed as a double float number.
ctrl()command. The default precision is about 9 digits, which can be specified by
 ctrl("bigfloat",1); 1  eval(2^(1/2)); 1.414213562373095048763788073031  setprec(100); 9  eval(2^(1/2)); 1.41421356237309504880168872420969807856967187537694807317654396116148Function
eval()evaluates numerically its argument as far as possible. Notice that the integer given for the argument of
setprec()does not guarantee the accuracy of the result, but it indicates the representation size of numbers with which internal operations of PARI are performed. (section
eval, See section
a+b*@i, where @i is the unit of imaginary number, and
bare either a rational number, double float number or bigfloat number, respectively. The real part and the imaginary part of a complex number can be taken out by
simp_ffto an integer.
@represents t mod f in F=GF(2)[t](f(t)). By using
@one can input an element of F. For example
@^10+@+1represents an element of F.
ptogf2nconverts a univariate polynomial into an element of F.
ntogf2nAs a bit string, a non-negative integer can be regarded as an element of F. Note that one can input a non-negative integer in decimal, hexadecimal (
0xprefix) and binary (
simp_ffis available if one wants to convert the whole coefficients of a polynomial.
The characteristic of a large finite prime field and the defining
polynomial of a finite field of characteristic 2 are set by
Elements of finite fields do not have informations about the modulus.
Upon an arithmetic operation, the modulus set by
used. If one of the operands is a rational number, it is automatically
converted into an element of the finite field currently set and
the operation is done in the finite field.
Go to the first, previous, next, last section, table of contents.