Changes between Initial Version and Version 3 of Ticket #4498


Ignore:
Timestamp:
11/12/08 17:13:16 (12 years ago)
Author:
was
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4498

    • Property Milestone changed from sage-3.2.1 to sage-wishlist
    • Property Type changed from defect to enhancement
    • Property Summary changed from The argument function does not work with variables. to Implement a symbolic version of the arg function; the current one is only for actual numbers
  • Ticket #4498 – Description

    initial v3  
     1It would be nice if there were a symbolic arg function, just like the symbolic sin, cos, etc., functions.  Then the following would happen:
     2
     3{{{
     4sage: f = arg(x); f
     5arg(x)
     6sage: f.subs(x=1+I)
     7arg(1+I)
     8}}}
     9
     10Now we have
     11{{{
     12sage: arg(1+I)
     130.785398163397
     14sage: type(arg(1+I))
     15<type 'sage.rings.real_double.RealDoubleElement'>
     16}}}
     17
     18I.e., the arg in Sage is currently the numerical person's arg, not the symbolic person's.  It just casts to CDF.
     19
     20
    121"The function should return the argument of a complex function." - Ronan Paixão