[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37859] syntax error in anonymous function inp
From: |
Ed Bueler |
Subject: |
[Octave-bug-tracker] [bug #37859] syntax error in anonymous function input to quad() wipes/corrupts variables in current scope |
Date: |
Mon, 03 Dec 2012 22:09:55 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11 |
URL:
<http://savannah.gnu.org/bugs/?37859>
Summary: syntax error in anonymous function input to quad()
wipes/corrupts variables in current scope
Project: GNU Octave
Submitted by: bueler
Submitted on: Mon 03 Dec 2012 10:09:54 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: bueler
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: GNU/Linux
_______________________________________________________
Details:
This should say what is needed:
$ octave
>> version
ans = 3.2.4
>> yxz = pi
yxz = 3.1416
>> f = @(x) x.^2
f =
@(x) x .^ 2
>> gfoobar = @(x) sin(x)
gfoobar =
@(x) sin (x)
>> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
ans 1x5 5 char
f 1x1 0 function_handle
gfoobar 1x1 0 function_handle
yxz 1x1 8 double
Total is 8 elements using 13 bytes
>> quad(@(x),0,1)
parse error:
syntax error
>>> quad(@(x),0,1)
^
>> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
f x -1x-1 0 unknown
Total is 1 element using 0 bytes
>>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37859>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37859] syntax error in anonymous function input to quad() wipes/corrupts variables in current scope,
Ed Bueler <=