chapel-lang/chapel

AutoMath module - add a `polar` function

Open

#23.173 aperta il 31 ago 2023

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)Chapel (446 fork)auto 404
area: Libraries / Moduleseasy / straightforwardgood first issuetype: Feature Request

Metriche repository

Star
 (2010 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor