1-AUG-2019 SolveSys - Equation Library and Nonlinear Systems Solver
02-09-2017, 09:35 PM (This post was last modified: 02-09-2017 09:49 PM by Han.)
Post: #3
 Han Senior Member Posts: 1,869 Joined: Dec 2013
RE: SolveSys - Equation Library and Multiple Equations Solver
(02-09-2017 08:42 PM)akmon Wrote:  Hello, downloaded beta version. Thank you for your efforts on try to have a solvesys like HP50, one of the most important programs, I think.

First, a strange issue has happend sometimes: after inserting the equations, I push [Num] then OK, and it does not start to solve but it returns to the equation menu. ¿? I did a warmstart and it didn´t happen again, at the moment.

The system of this thread gives different results from the Wolfram, I get A=1,27E-10 and B=1,088E21. Wolfram: A: -3,675E-10, B: 9,438€-11 Perhaps too low values for iteration accuracy?

If I recall correctly, that pair of values results in a nearly-singular Jacobian (likely singular due to floating point issues). But getting there was likely due to a few other issues. The SVD program had a few bugs in it (update again, even if you already did so recently). The other issue is due to CAS corruption, for which the current workaround is to use the restart command in the CAS view and rebuild the SVD program by opening and closing its source file.

I can still get both solutions to this system (in the 0.500 version) by setting |x| to 1e-20 and |F| to 1e-10. The |F| value I think should be self-explanatory but the |x| labeling for the other tolerance may be a bit misleading. It is really a measure of the change in the x_i's relative to the norm of the previous solution. So if u want 4 digits of accuracy and your solution is in the order of 1e-10, then you should try setting |x| to 1e-16. May I can change this later on to "number of digits" rather than a "tolerance" value to reflect the true behavior of that value. Also, |F| should be set to be a 1e-10 (or smaller) since 1.27e-10 would be pretty close to the error itself (similar reasoning). When using (1,1) and (1,2) for initial values, I get the two separate solutions.

Lastly, keep in mind that the (now prior) version was just Newton's method and is highly likely to wander off into "la-la" land. In your case, you probably landed in a spot where the Jacobian is nearly singular (or in fact singular but not shown to be so due to typical floating point issues). You can check this by using svd2(ssJ) -- make sure to do this in the CAS view. The "middle" vector lists the singular values. If any of them are close to zero, then the Jacobian is (likely) rank-deficient.

The newer version has backtracking line search.

I still need to tweak the exit conclusions (i.e. how to classify supposed solutions).

I just updated the program; I appreciate your continued efforts to test the solver.

EDIT: I should mention that I am able to get it to run on the real calculator after having tweaked a few spots where iferr blocks were used. It would seem that iferr and return calls are currently misbehaving so that repeated instances would lead to a warmstart. I worked around that issue by modifying the code to not rely on iferr.

Graph 3D | QPI | SolveSys
 « Next Oldest | Next Newest »

 Messages In This Thread 1-AUG-2019 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 02-05-2017, 10:51 PM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-09-2017, 08:42 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-09-2017 09:35 PM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-10-2017, 12:18 AM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-10-2017, 12:30 AM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-10-2017, 07:27 AM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-10-2017, 04:46 PM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-10-2017, 07:13 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-10-2017, 07:41 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-11-2017, 02:09 AM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-11-2017, 05:43 AM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-12-2017, 11:19 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-12-2017, 11:39 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-13-2017, 12:08 AM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-13-2017, 12:39 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-14-2017, 02:11 AM RE: SolveSys - Equation Library and Multiple Equations Solver - compsystems - 02-14-2017, 08:06 PM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-14-2017, 11:21 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-15-2017, 12:16 AM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-15-2017, 10:41 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-16-2017, 02:25 AM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-16-2017, 02:46 AM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-16-2017, 11:05 PM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-19-2017, 02:45 PM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-19-2017, 11:25 PM RE: SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-20-2017, 07:55 AM RE: SolveSys - Equation Library and Multiple Equations Solver - Han - 02-20-2017, 12:35 PM RE: 20-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-20-2017, 05:38 PM RE: 20-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - Han - 02-20-2017, 06:51 PM RE: 20-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - Han - 02-21-2017, 01:11 AM RE: 20-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - EdDereDdE - 02-23-2017, 10:05 PM RE: 20-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-23-2017, 11:46 PM RE: 20-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - Han - 02-24-2017, 01:59 AM RE: 20-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - Han - 02-24-2017, 08:29 PM RE: 24-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - vitruvianjp - 02-25-2017, 12:08 AM RE: 24-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - Han - 02-25-2017, 12:52 AM RE: 24-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - Han - 02-25-2017, 06:14 PM RE: 25-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - akmon - 02-26-2017, 01:33 AM RE: 25-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - rprosperi - 02-26-2017, 02:19 PM RE: 25-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - Han - 02-27-2017, 06:35 AM RE: 25-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - min21 - 03-02-2017, 10:00 PM RE: 25-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - Han - 03-02-2017, 11:36 PM RE: 25-FEB-2017 SolveSys - Equation Library and Multiple Equations Solver - min21 - 03-03-2017, 06:00 AM RE: 05-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - akmon - 03-05-2017, 10:19 PM RE: 05-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - EdDereDdE - 03-06-2017, 04:57 PM RE: 05-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-06-2017, 05:09 PM RE: 05-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - EdDereDdE - 03-06-2017, 05:11 PM RE: 05-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - compsystems - 03-06-2017, 05:45 PM RE: 05-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-06-2017, 07:07 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - math7 - 03-09-2017, 04:56 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-09-2017, 05:04 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - math7 - 03-09-2017, 04:57 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - math7 - 03-10-2017, 05:56 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - akmon - 03-11-2017, 09:23 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - akmon - 03-29-2017, 09:55 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-29-2017, 11:26 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - StephenG1CMZ - 03-13-2017, 10:16 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-13-2017, 10:57 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - StephenG1CMZ - 03-13-2017, 11:13 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-14-2017, 02:48 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-15-2017, 06:58 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - jorge_rui - 03-21-2017, 11:28 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-23-2017, 10:51 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-24-2017, 01:48 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - math7 - 03-24-2017, 04:35 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-27-2017, 02:53 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-25-2017, 03:13 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-25-2017, 03:28 AM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-25-2017, 12:40 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-25-2017, 01:07 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-25-2017, 01:53 PM RE: 08-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-25-2017, 02:25 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-26-2017, 03:17 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-26-2017, 10:22 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-26-2017, 10:51 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-26-2017, 11:07 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-27-2017, 12:37 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-27-2017, 02:32 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-27-2017, 02:42 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 03-28-2017, 12:21 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-28-2017, 07:49 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - akmon - 03-29-2017, 01:16 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-30-2017, 01:11 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - arturocb - 04-18-2017, 06:02 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 04-20-2017, 07:45 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Rodomar705 - 07-01-2017, 12:12 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 04-20-2017, 07:58 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 04-21-2017, 02:12 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - bruno2017 - 04-22-2017, 09:01 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - primer - 04-29-2017, 11:46 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 04-29-2017, 11:56 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 07-01-2017, 03:48 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Rodomar705 - 07-02-2017, 10:04 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 07-02-2017, 04:36 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Rodomar705 - 07-03-2017, 12:04 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - PLX - 09-04-2017, 05:56 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 10-31-2017, 04:32 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - corina - 09-22-2017, 10:58 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Arno K - 10-23-2017, 09:46 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - math7 - 11-06-2017, 04:42 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - PLX - 11-08-2017, 12:24 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - akmon - 02-03-2018, 11:58 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 02-06-2018, 07:27 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Uhtred - 02-09-2018, 03:05 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - arturocb - 03-21-2018, 10:15 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - sinan oz - 03-31-2018, 12:15 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 03-22-2018, 04:22 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 04-05-2018, 03:23 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Andrea - 09-28-2018, 10:48 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - akmon - 10-03-2018, 06:48 AM Not able to solve a system - rrpalma - 05-05-2019, 08:10 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 05-06-2019, 12:33 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - rrpalma - 05-06-2019, 01:53 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - OGee - 07-30-2019, 12:43 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 07-30-2019, 07:18 PM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - OGee - 07-31-2019, 09:15 AM RE: 25-MAR-2017 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 08-01-2019, 03:29 PM RE: 1-AUG-2019 SolveSys - Equation Library and Nonlinear Systems Solver - ymmot - 03-14-2020, 07:28 AM RE: 1-AUG-2019 SolveSys - Equation Library and Nonlinear Systems Solver - Han - 05-27-2020, 07:21 PM RE: 1-AUG-2019 SolveSys - Equation Library and Nonlinear Systems Solver - ymmot - 08-23-2020, 03:19 PM RE: 1-AUG-2019 SolveSys - Equation Library and Nonlinear Systems Solver - oneletterz - 04-27-2021, 03:44 PM

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