Post Reply 
integral competition HP50g vs. DM42
08-21-2020, 05:43 AM (This post was last modified: 08-21-2020 05:53 AM by Ángel Martin.)
Post: #5
RE: integral competition HP50g vs. DM42
(08-20-2020 10:02 AM)Stevetuc Wrote:  By processing as C(x),S(x) as a single complex number C(x) + i * S(x)
Both results are obtained with a single operation:
https://en.m.wikipedia.org/wiki/Complex_number

Indeed, and as example here's the 41Z routine listing for the calculation.
Input: x in X
Output: S(x) in Y, C(x) in X

Code:
1    LBL "ZCSX"
2    1
3    X<>Y
4    STO 00
5    X^2
6    PI
7    ,5
8    STO 01
9    STO 02
10    *
11    *
12    ISG 02
13    0
14    ZGHF
15    RCL 00
16    ST* Z
17    *
18    END

Execution times: 1.5 s on the 41CL

"To live or die by your own sword one must first learn to wield it aptly."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: integral competition HP50g vs. DM42 - Ángel Martin - 08-21-2020 05:43 AM



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