Contour Integral
|
02-25-2024, 09:31 AM
(This post was last modified: 03-03-2024 01:40 PM by Ángel Martin.)
Post: #2
|
|||
|
|||
RE: Contour Integral
Thanks for putting this one together, nicely done indeed.
I have made a few tweaks that save some bytes and eliminate one global label. Plus also used the 41Z functions instead of the FOCAL routines from the Advantage, which make the code better legible and reduces execution time. The resulting code is posted below. This application is somewhat limited to (non-horizontal) straight line segments for contours, I've been musing about a general-purpose implementation using the residues theorem and analytical functions but so far the challenge is not resolved... would like to hear if anybody has some suggestions. Code: 01 LBL “ZLITG” Cpx. Line Intg. and the complex function example: Code: 01 LBL “FZ” Usage: set the desired accuracy (i.e. FIX 3), enter the complex function LABEL in ALPHA (i.e. "FZ"), and the lower and upper complex limits in the complex stack (i.e. 0, ENTER^, 1, ZENTER^, 6, ENTER^, 1). Then execute the program (i.e. XEQ "ZLITG") Result in FIX 6: -0.324350+J0.382053 Best, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Contour Integral - Marcel - 11-12-2023, 07:22 PM
RE: Contour Integral - Ángel Martin - 02-25-2024 09:31 AM
RE: Contour Integral - Marcel - 02-25-2024, 08:06 PM
RE: Contour Integral - Ángel Martin - 02-25-2024, 09:57 PM
RE: Contour Integral - Marcel - 02-25-2024, 10:50 PM
RE: Contour Integral - Ángel Martin - 02-26-2024, 07:43 AM
RE: Contour Integral - jonmoore - 08-12-2024, 11:20 AM
|
User(s) browsing this thread: 2 Guest(s)