4 ms·
I can't even think of a language that has first class complex numbers, let alone complex number literals.
by cheepin 12y ago
I can't even think of a language that has first class complex numbers, let alone complex number literals.
- Serow225 12y agoMATLAB
- ori_b 12y agoC? #include <complex.h> complex f(complex a, complex b) { return a*b + 5*I; }
- kragniz 12y agoPython does. >>> 5 + 2j (5+2j) >>> 2j * 2j (-4+0j)
- deleted 12y ago[deleted]
- burntsushi 12y agoGo does too. http://play.golang.org/p/ficmYvVehL http://play.golang.org/p/ficmYvVehL