Skip to content

Implement a symbolic version of the arg function #4498

Closed
@TimothyClemans

Description

@TimothyClemans

It would be nice if there were a symbolic arg function, just like the symbolic sin, cos, etc., functions. Then the following would happen:

sage: f = arg(x); f
arg(x)
sage: f.subs(x=1+I)
arg(1+I)

Now we have

sage: arg(1+I)
0.785398163397
sage: type(arg(1+I))
<type 'sage.rings.real_double.RealDoubleElement'>

I.e., the arg in Sage is currently the numerical person's arg, not the symbolic person's. It just casts to CDF.

"The function should return the argument of a complex function." - Ronan Paixão

Apply

CC: @kcrisman @sagetrac-ktkohl

Component: symbolics

Keywords: sd35.5

Author: Karen Kohl, Burcin Erocal

Reviewer: Karl-Dieter Crisman, Burcin Erocal

Merged: sage-5.0.beta4

Issue created by migration from https://trac.sagemath.org/ticket/4498

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions