Big Chemical Encyclopedia

Chemical substances, components, reactions, process design ...

Articles Figures Tables About

Using the fsolve Command

There are two main ways to solve multiple equations in MATLAB. The hrst is to use the fsolve command. The second way is to use the optimization routines and the fminsearch command. Both are illustrated here. [Pg.48]

The steps are create an m-hle, check it, call the appropriate MATLAB function, and check the results. [Pg.48]

Step 2 Test the hie probl.m with p(l) = 1.5 and p(2) = 2.5. If you tested with values of 1.0 and LO there are several chances for error. For example, if a line is supposed to be x x but only x is written, then using a value of LO for x gives the same value for x and x x and you will not detect the error. Using the same value for x and y [or / ( ) and / (2) has the same pitfall If you inadvertently typed x in place of y in the m-hle, then you would not detect the error with these values. [Pg.48]

These values agree with the manual calculations, so the functions are computed correctly. Now you put after every line in the code in order to suppress the displayed output. [Pg.48]

Step 3 From the command mode, you call the fsolve program with an initial guess, pO. [Pg.48]


One can use the fsolve command in Maple to solve equations numerically ... [Pg.6]


See other pages where Using the fsolve Command is mentioned: [Pg.225]    [Pg.48]   


SEARCH



Fsolve

© 2024 chempedia.info