[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36889] inline with too many parentheses fails
From: |
David Bateman |
Subject: |
[Octave-bug-tracker] [bug #36889] inline with too many parentheses fails to identify X variable |
Date: |
Tue, 30 Oct 2012 13:37:33 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0 |
Update of bug #36889 (project octave):
Status: None => Wont Fix
_______________________________________________________
Follow-up Comment #1:
I suspect Octave current behavior is correct and this can not be fixed.
Consider something like
f = inline ('a.^2 + b - cos (theta)')
where both matlab and octave respond with
f(a, b, theta) = a.^2 + b - cos (theta)
as you would expect. Note however that "cos" was not treated as a variable as
you seem to expect it should be given this bug report. When I implemented the
inline function as a special type of anonymous function I explictedly excluded
variables and functin calls being treated as arguments as that is what matlab
did at the time.
Though I don't have access to matlab to confirm it but given the bug report
http://www.mathworks.com/matlabcentral/newsreader/view_thread/321077
I suspect matlab still behaves in the same manner. So I'm marking this bug as
"Won't fix" but leaving it open to allow someone to check if Matlab treats
this example in the same manner as Octave.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36889>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #36889] inline with too many parentheses fails to identify X variable,
David Bateman <=