Multi-Dimensional Nonlinear Algebraic Equations
Computer Methods in Chemical Engineering
Problem Statement:
Write a program to find a solution to the following set of
algebraic equations.
sin(x) + y2 + ln(z) = 7
3x + 2y + 1 = z3
x + y + z = 5
Solution:
- Answer: x = 0.5990,
y = 2.396,
z = 2.005.
- FORTRAN (Call MNEWT of NR)
- FORTRAN, with the Levenberg-Marquardt Algorithm, no Jacobian (Call NEQNF of IMSL)
- FORTRAN, no Jacobian (Call NEWTND of Riggs -- presented as a lesson, not recommended)
- QBasic (Call MNEWT of NR)
- QBasic (Call MNEWT of NR, approximate Jacobian)
- MATLAB /w "fsolve"
- Mathcad
- Excel (Call MNEWT of NR)
Return to Prof. Nam Sun Wang's Home Page
Return to Computer Methods in Chemical Engineering (ENCH250)
Computer Methods in Chemical Engineering -- Multi-Dimensional Nonlinear Algebraic Equations
Forward comments to:
- Nam Sun Wang
- Department of Chemical & Biomolecular Engineering
- University of Maryland
- College Park, MD 20742-2111
- 301-405-1910 (voice)
- 301-314-9126 (FAX)
e-mail: nsw@umd.edu
©1996-2006 by Nam Sun Wang
| |