help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imaginary unit


From: Jordi Gutierrez Hermoso
Subject: Re: imaginary unit
Date: Wed, 26 Apr 2006 19:21:06 -0500

On 4/26/06, Przemek Klosowski <address@hidden> wrote:
> Perhaps the use of predefined 'i' should elicit a warning?

That would be a rather annoying warning. Octave is built with
Fortran-like syntax, and in Fortran, letters i through n default(ed?)
to integers, and they seem like the most natural choice for indexing.
If it did issue a warning, I would like this warning to quickly be
turned off.

I think the best solution is to remember to conscientiously clear the
value of i (or j, if you prefer engineering notation) if you're about
to use it as the imaginary unit. Type "clear i" or "clear j" before
working with complex numbers, and be careful about which variables you
use for indexing.

- Jordi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]