(34S) Function minimization (golden section)
|
03-24-2017, 02:56 AM
(This post was last modified: 06-15-2017 01:20 PM by Gene.)
Post: #1
|
|||
|
|||
(34S) Function minimization (golden section)
This program finds minimum of a given function on a given interval with given precision.
The function must be unimodal (first strictly decrease then strictly increase) on that interval. If function is not unimodal, program signals "Root not found". The program uses golden section method to narrow down on the minimum point. Input: LBL 99 -- user function eps [ENTER] a [ENTER] b XEQ 'UMΦ' (eps is required precision, a and b -- ends of the interval) Result: r01, r04 -- new interval (size less than eps) containing minimum Used registers: r00..r09 flag 00 Example: function at lbl 99 is x^2-5x 1e-6 [ENTER] 0 [ENTER] 5 XEQ 'UMΦ' Output: R01~R04~2.5 Code: 0001 LBL'UMΦ' |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(34S) Function minimization (golden section) - nsg - 03-24-2017 02:56 AM
RE: (34s) Function minimization (golden section) - Dieter - 03-24-2017, 07:40 AM
|
User(s) browsing this thread: 1 Guest(s)