Changes between Version 4 and Version 6 of Ticket #28966


Ignore:
Timestamp:
08/09/20 16:25:59 (6 months ago)
Author:
mkoeppe
Comment:

New commits:

11aeb15Add globals σ, Γ, ψ, ζ, π

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28966

    • Property Status changed from new to needs_review
    • Property Branch changed from to u/mkoeppe/provide_unicode_aliases_for_some_globals_in_python_3
    • Property Commit changed from to 11aeb1542b40a8703f75f5ee38915cd91488d895
  • Ticket #28966 – Description

    v4 v6  
    66(This list can easily be expanded by modifying the dict in `IPython.completer.latex_symbols`.)
    77
    8 This enables nice-looking code like:
    98{{{
     9sage: π
     10pi
     11sage: _.n()
     123.14159265358979
    1013sage: sin(π)
    11140
    12 sage: cos(π)
    13 -1
     15sage: σ
     16Function that adds up (k-th powers of) the divisors of n
     17sage: Γ
     18<function gamma at 0x7ff3f051a710>
     19sage: ψ
     20<function psi at 0x7ff3f0531320>
     21sage: ζ
     22zeta
     23sage: ζ(-1)
     24-1/12
    1425}}}
    1526
     27