[Top][All Lists]

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

Re: Complex numbers, format preferences, "j" rather than "i"

From: Mike Miller
Subject: Re: Complex numbers, format preferences, "j" rather than "i"
Date: Thu, 3 Dec 2015 17:49:27 -0500
User-agent: Mutt/1.5.24 (2015-08-30)

On Thu, Dec 03, 2015 at 22:11:18 +0000, D Greig wrote:
> Is it possible to format the imaginary unit to j rather than i?
> From an electronic background the preference is j.
> The documentation for Octave is good, but it is a preponderance to search
> thru.

Are you asking about the output format of complex numbers? Like so:

  >> 2i
  ans =  0 + 2i
  >> 2j
  ans =  0 + 2i

If so, no the "i" is currently hardcoded in the interpreter.

This could be done with a local modification and rebuild of Octave, or a
custom function (e.g. my_disp) to display complex numbers how you


reply via email to

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