1 | initial version |
For the absolute value, you should not use |
, but the abs()
function. By the way:
Pi
is not defined in Sage. Do not use pi
which is a symbolic constant, instead, use RR.pi()
that is of the same kind as c
, a floating-point number.2 | No.2 Revision |
For the absolute value, you should not use |
, but the abs()
function. By the way:
Pi
is not defined in Sage. Do not use pi
which is RR.pi()
that is of the same kind as c
, a floating-point pi.n()
to tell that you want a numerical approximation of pi
).3 | No.3 Revision |
For the absolute value, you should not use |
, but the abs()
function. By the way:
Pi
is not defined in Sage. Do not use pi
which is an (exact) symbolic constant, instead, use RR.pi()
that is of the same kind as c
, a floating-point number (or pi.n()
to tell that you want a numerical approximation of pi
Pi = RR.pi()
before your computation.4 | No.4 Revision |
For the absolute value, you should not use |
, but the abs()
function. By the way:
Pi
is not defined in Sage. Do not use pi
which is an (exact) symbolic constant, instead, use RR.pi()
that is of the same kind as c
, a floating-point number (or pi.n()
to tell that you want a numerical approximation of pi
). Pi = RR.pi()
before your computation.