1 | initial version |

For the absolute value, you should not use `|`

, but the `abs()`

function. By the way:

- you should only use parentheses, not brackets that have a different meaning in Python
`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:

- you should only use parentheses, not brackets that have a different meaning in Python
`Pi`

is not defined in Sage. Do not use`pi`

which is~~a~~an (exact) symbolic constant, instead, use`RR.pi()`

that is of the same kind as`c`

, a floating-point~~number.~~number (or`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:

- you should only use parentheses, not brackets that have a different meaning in Python
`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`

~~).~~). Or, define`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:

- you should only use parentheses, not brackets that have a different meaning in Python
`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`

).~~Or,~~Alternatively, define`Pi = RR.pi()`

before your computation.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.