[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30710] Support fminbnd
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #30710] Support fminbnd |
Date: |
Tue, 10 Aug 2010 18:39:10 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/9.10 (karmic) Firefox/3.6.8 |
Follow-up Comment #3, bug #30710 (project octave):
The comment boxes for the bug tracker use a simple markup language where
[asterisk text asterisk] becomes *bold*.
This can be a problem for code samples, such as the posted fminbind example,
which use two asterisks for multiplication.
The use of plus_sign verbatim plus_sign and minus_sign verbatim minus_sign
around blocks can help.
So, with that in mind.
[x y] = fminbnd('3^x-12*x2+40*x-36', 3, 8)
produces
@3^x-12*x2+40*x-36: no function and no method found
The help for fminbnd says that it accepts a function handle or name. This
suggests using @(x) or 'inline' to create a function handle. Both of the
following work.
[x y] = fminbnd(inline('3^x-12*x^2+40*x-36'), 3, 8)
[x y] = fminbnd(@(x) 3^x-12*x^2+40*x-36, 3, 8)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30710>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/