[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30710] Support fminbnd
From: |
Alois Schlögl |
Subject: |
[Octave-bug-tracker] [bug #30710] Support fminbnd |
Date: |
Tue, 10 Aug 2010 09:10:38 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8 |
Follow-up Comment #2, bug #30710 (project octave):
I've compiled it from the latest sources (v3.3.52+, can not find v3.4) and
see that the command fails
octave:1> version
ans = 3.3.52+
octave:2> [x y] = fminbnd('3^x-12*x^2+40*x-36', 3, 8)
error: @3^x-12*x^2+40*x-36: no function and no method found
error: called from:
error: /home/schloegl/src/octave/scripts/optimization/fminbnd.m at line 68,
column 9
The command in Matlab causes an error
[x y] = fminbnd('3^x-12x^2+40x-36', 3, 8)
??? Error using ==> inlineeval
Error in inline expression ==> 3^x-12x^2+40x-36
??? Error: Unexpected MATLAB expression.
Error in ==> inline.subsref at 25
INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr,
INLINE_OBJ_.expr);
Error in ==> fminbnd at 212
x= xf; fx = funfcn(x,varargin{:});
The command runs if modifed in this way.
>> [x y] = fminbnd('3^x-12*x^2+40*x-36', 3, 8)
x =
3.1908
y =
2.7540
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30710>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/