octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #31974] Interpreter fails to create complex nu


From: Jaroslav Hajek
Subject: [Octave-bug-tracker] [bug #31974] Interpreter fails to create complex numbers with Inf complex parts
Date: Sun, 02 Jan 2011 11:57:07 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.2.11) Gecko/20101013 Ubuntu/9.04 (jaunty) Firefox/3.6.11

Follow-up Comment #17, bug #31974 (project octave):

It is also possible that Matlab changed the behavior of real*complex just to
make this thing work. I would advise to avoid doing such a general (and kinda
stupid) change and only implement the constant folding optimization as
suggested by JWE, i.e. a+b*i  -> complex(a, b) where a, b are scalar
constants, because that's what most people mean. Don't change anything else.
It does mean a sort of inconsistency, but not quite, because we can say that
the expression is simply parsed as a constant.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31974>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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