1AUG2019 SolveSys  Equation Library and Nonlinear Systems Solver

02052017, 10:51 PM
(This post was last modified: 08012019 03:32 PM by Han.)
Post: #1




1AUG2019 SolveSys  Equation Library and Nonlinear Systems Solver
1AUG2019 (Ver. 1.10Beta)
CHANGELOG
To update, first save your library files if you have modified any systems of equations. See the eqlib.pdf manual file for a program that exports library files into notes that can be edited on a computer. (The connectivity kit can also be used to view/edit notes.) It is always good practice to back up your libraries regularly. Download links at bottom of post. ABOUT THE APP This app is intended to replicate and combine programs from the HP48 series of calculators for organizing equations and launching an equation solver. While there are a few usercreated programs/apps that help manage equations, most of them have the formulas builtin (hardcoded into the source code of the program/app). This app attempts to allow users to build their own equations library. The user can then also launch a numerical solver. Using the builtin Solve app may be adequate for some users, but it lacks the ability to handle more general systems. The current Solve app is quite deficient in that in requires the number of equations in a system be the same as the number of variables. Therefore, overdetermined or underdetermined systems cannot be solved numerically. Usually underdetermine systems have an infinite number of results, and a numerical solver should ideally try to return a solution that is as close to the initial guess as possible. For overdetermined systems, a solution usually does not exist. Most numerical solvers would return a "leastsquares" solution. This app implements the NewtonRaphson algorithm for solving a system of equations. In order to handle illconditioned, overdetermined, underdetermined, rankdeficient (etc.) Jacobian matrices, the SVD is used to determine the pseudoinverse of the Jacobian (the pseudoinverse coincides with the regular inverse of a matrix for nonsingular matrices). Users have reported that the app can handle complex values just fine. Minimal testing seems to confirm this. INSTALLATION AND USAGE (Please refer to the reference manual included in the zip file) REFERENCE MANUAL The reference manual will likely see another update in which all the images are updated to nicer, crisp images created by \( \LaTeX\ \) and pstricks. For now, though, I will leave them there so that there is at least some frame of reference, and for old time's sake. The equations will also likely get a face lift as the variables are updated to follow typical mathematical conventions (e.g. subscripts). While the HP Prime currently does not support subscripted variables, the correspondence between the calculator's variables and those in the reference manual should be obvious (e.g. \( v_0 \) vs. \( \tt{v0} \) ). If you notice any typos, please let me know. OTHER NOTES: There are two versions: a merged version (SVD merged into the source code for Equation Library) and the separated version. Does it make a difference which version I use? Yes, if you plan to work with under/over determined systems or systems whose Jacobian is either singular or near singular, it can make a major difference. The separated version (i.e. not merged) is slightly more accurate. As of the 2018 10 16 firmware release (press [Help] (Tree) (About) to see your firmware version), it appears that an issue with CAS corruption has been fixed. What this will likely mean is that the app will move toward a single release. PRIOR CHANGES: 25MARCH2017 (Ver. 1.000)
08MAR2017 (Ver. 0.900)
TODO
DOWNLOADS Version 1.10 Beta: Attached in this recent post Version 1.000 (same file name, just redownload to get the update) Equation Library Prime.zip (Size: 540.99 KB / Downloads: 1261) Graph 3D  QPI  SolveSys 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)