6 ms·
On the other hand, not many languages use lowercase 'i' for complex number literals, in fact I can't think of any right now.
by sixbrx 12y ago
On the other hand, not many languages use lowercase 'i' for complex number literals, in fact I can't think of any right now.
- cheepin 12y agoI 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
- gus_massa 12y agoScheme and Racket use i in complex numbers, for example: (* 2+3i 4+5i) ;=> -7+22i
- dragonwriter 12y agoRuby 2.1 does.