Non-Linear Solver Code Generated by ExprLib © MSSRC 1999-2008 |
||||
|
ExprLib can be used to find zeros of a
system of n functions in n variables:
f1(x1 ... xn) = 0
. . . fn(x1 ... xn) = 0. In this example, it will be assumed that the functions are represented by n expressions in n variables and that their partial derivatives are continuous. Only the ``front end'' for the solver will be given. This front end calls the MINPACK routine hybrj, a modified Powell hybrid method. Click here to see the FORTRAN code: source code You can use the default values below or enter your own values. Required input values are:
|
Note: In this demo, the only symbolic
constant available is PI (both letters in capitals). If other
constants such as e are required, they need to be input as
function values, e.g. exp(1.0).
The expressions must be input with a semicolon separating each expression (and a semicolon at the end).
expr1; expr2; ... exprn;
The initial approximation must be input in the form
x1=val1;
x2=val2; ...
xn=valn;
Spaces are irrelevant. Note that all data is to be input using ANSI C syntax, e.g. 3.834e-20 and not 3.834d-20. ExprLib will translate the input into the proper form for FORTRAN. In this demo, you are restricted to n expressions in n variables where n is less than or equal to 5. By submitting a set of values, the FORTRAN generated for this problem will be returned. You can use this along with the solver source code to compile a solution using F77. In addition, there is an integer output variable. The value is set as follows.
|
|||
| Comments, more information, problems? Click here | ||||