chapel-lang/chapel

AutoMath module - add a `polar` function

Open

#23,173 opened on Aug 31, 2023

View on GitHub
 (8 comments) (0 reactions) (0 assignees)Chapel (446 forks)auto 404
area: Libraries / Moduleseasy / straightforwardgood first issuetype: Feature Request

Repository metrics

Stars
 (2,010 stars)
PR merge metrics
 (PR metrics pending)

Description

In the discussion on the naming of the carg/phase function (#19006), we discovered that Python provides a polar function (https://docs.python.org/3/library/cmath.html#cmath.polar) that is equivalent to (abs(x), phase(x)). This seems like something that would also be useful to provide to users

Contributor guide