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

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

[Octave-bug-tracker] [bug #35236] Inline does not recognise "e" as a bui


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #35236] Inline does not recognise "e" as a built-in variable
Date: Wed, 04 Jan 2012 15:56:52 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 Iceweasel/8.0

Follow-up Comment #2, bug #35236 (project octave):

First, there are no "built-in variables" in Octave now.  Symbols like "pi" and
"NaN" that are given special treatment by the inline function are functions,
not variables.

The confusing error message about 'x' undefined happens because by default,
inline functions use 'x' as their argument when no other variables are
discovered in the expression.  That is somewhat strange, but compatible with
Matlab.

Matlab's inline function does not give 'e' or 'NA' special treatment.

So now I suppose that we will see bug reports about how


inline ('some-expression-involving-e')


is not compatible with Matlab (Matlab will include 'e' in the list of
arguments and Octave will not do that now).

To be fair, this problem already existed for 'NA', but just came to my
attention because of this report.

Unfortunately, I don't think the list of symbols that are handled specially by
Matlab's inline function are documented.  

It looks like we only document 'i' and 'j' and the wording could be better.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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