4 implementations of cart_to_pol:
#1
/digego/extempore/tree/v0.8.9/libs/core/math.xtm ·
#2
/digego/extempore/tree/v0.8.9/libs/core/math.xtm ·
#3
/digego/extempore/tree/v0.8.9/libs/core/math.xtm ·
#4
/digego/extempore/tree/v0.8.9/libs/core/math.xtm
(bind-func cart_to_pol
(lambda (a:Complexf)
(Cpxf (sqrt (+ (* (tref a 0) (tref a 0))
(* (tref a 1) (tref a 1))))
(atan2 (tref a 1) (tref a 0)))))