4 ms·
It's for this precise reason that I use 1i rather than i when doing complex arithmetic in matlab.
by joeyo 15y ago
It's for this precise reason that I use 1i rather than i when doing complex arithmetic in matlab.
- ajross 15y agoWait... matlab allows "AB" to be inferred as "A*B"? How is that not a disaster? Parsing a token that doesn't even exist in the lexer stream? Even C++ wouldn't try that.
- gujk 15y ago1i is special, sort of like 1d or 1f in C. The i refers to the imaginary number datatype. i also can be reassigned, which is a horrible design bug in Matlab.