[wp34s] Yet another complex solver
|
12-23-2015, 02:21 AM
(This post was last modified: 01-08-2016 12:24 AM by emece67.)
Post: #1
|
|||
|
|||
[wp34s] Yet another complex solver
Hi all. Having some trouble using the complex solver in the wp34s library, I've developed a new complex solver to be (hopefully) included in the wp34s library.
In my case, the complex solver already in the library does not converge many times. I suppose this is some kind of glitch on its wp34s porting (the original program was for the 35s), as the article by its author (Valentín Albillo) describing the program states 5 example applications some of them are not solved by the wp34s incarnation. Anyway, I wrote a new complex solver for the wp34s. In my tests it behaves quite correctly, is fast and accurate. It is based upon the Ostrowski-Traub method, a 4th order convergent algorithm (Newton is 2nd order, Laguerre 3rd) that only needs 3 function evaluations on each iteration. In fact it is a heavy rewriting of another complex solver I wrote years ago to be used on my first HP calculator, an hp28C. I used such solver when studying EE to solve many waveguide problems. I paste here the header of the programs listing, which describes its usage and some details of the algorithm. I've called it CSV and occupies 161 program steps. Can be used in both DBLOFF & DBLON modes. Sometimes it is even faster than the built in (real) solver when solving for real roots of real valued functions. Code:
Find attached the full listing. Any bug reporting or suggestion will be welcome. EDIT: last version moved to the General Software Library here Regards. |
|||
12-23-2015, 05:01 PM
(This post was last modified: 12-23-2015 05:01 PM by fhub.)
Post: #2
|
|||
|
|||
RE: [wp34s] Yet another complex solver
(12-23-2015 02:21 AM)emece67 Wrote: Find attached the full listing. Any bug reporting or suggestion will be welcome.WOW, really a great program - and what a detailled description! When you first wrote about it some time ago, I thought you would talk about a complex polynomial solver, but now it's even a 'full' complex solver - it certainly deserves to be included in the official WP34s library! Many thanks, Franz. |
|||
12-23-2015, 06:39 PM
Post: #3
|
|||
|
|||
RE: [wp34s] Yet another complex solver
(12-23-2015 05:01 PM)fhub Wrote: it certainly deserves to be included in the official WP34s library! Chances are high that it will be included not only in source form but also in the _full images if no-one objects. Marcus von Cube Wehrheim, Germany http://www.mvcsys.de http://wp34s.sf.net http://mvcsys.de/doc/basic-compare.html |
|||
12-23-2015, 06:51 PM
Post: #4
|
|||
|
|||
RE: [wp34s] Yet another complex solver
I concur.
d:-) |
|||
12-24-2015, 09:59 AM
Post: #5
|
|||
|
|||
RE: [wp34s] Yet another complex solver
(12-23-2015 05:01 PM)fhub Wrote: When you first wrote about it some time ago, I thought you would talk about a complex polynomial solver, but now it's even a 'full' complex solver In fact I was talking about a poly solver, but after your superb PRS program, I found not a big motivation to continue such way, so I switched to the general complex solver. I'm thinking now in adding support for polynomial operations to the wp34s (add, substract, multiply, divide, power, from roots get poly an root finding) to be added to the MATRIX menu. It would be an addition to the Matrix Reloaded patches I uploaded a year ago. (12-23-2015 06:39 PM)Marcus von Cube Wrote: Chances are high that it will be included not only in source form but also in the _full images if no-one objects. If so, please, use the CSV.zip I've uploaded a moment ago. It has a minor enhancement. |
|||
12-24-2015, 01:40 PM
Post: #6
|
|||
|
|||
RE: [wp34s] Yet another complex solver
(12-24-2015 09:59 AM)emece67 Wrote: If so, please, use the CSV.zip I've uploaded a moment ago. It has a minor enhancement. It will appear soon on SF. BTW, I added the poly root solver to the compiled library at the same time but had to remove the latter from the calc_ir_full build because flash is full. :-( I did not touch the "complex mode" branch which I'm not familiar enough with. Marcus von Cube Wehrheim, Germany http://www.mvcsys.de http://wp34s.sf.net http://mvcsys.de/doc/basic-compare.html |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)