Polynomial with real coefficients —> array w/ real coeff
|
05-05-2023, 02:03 PM
(This post was last modified: 05-05-2023 11:22 PM by Gil.)
Post: #9
|
|||
|
|||
RE: Polynomial with real coefficients —> array w/ real coeff
Very nice indeed.
Thanks. Perhaps we could simplify your tests by a single one as follows: « 0 { } —> N L « DUP DEGREE 'N' STO N 1 < IF THEN 1 —>LIST ELSE 0 N 1 - START 0 HORNER 'L' STO+ DROP NEXT L + END AXL » » And to have your program work without being asked if we want to go to real, add the following 3 instructions -105 SF for real, PUSH to save the initial flags and POP to restore the initial flags: « PUSH -105 SF 0 { } —> N L « DUP DEGREE 'N' STO N 1 < IF THEN 1 —>LIST ELSE 0 N 1 - START 0 HORNER 'L' STO+ DROP NEXT L + END AXL POP » » |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Polynomial with real coefficients —> array w/ real coeff - Gil - 11-22-2021, 03:09 PM
RE: Polynomial with real coefficients - Albert Chan - 11-22-2021, 05:12 PM
RE: Polynomial with real coefficients - Gil - 11-22-2021, 05:51 PM
RE: Polynomial with real coefficients - Gil - 11-23-2021, 11:23 AM
RE: Polynomial with real coefficients —> array w/ real coeff - Gil - 11-24-2021, 03:02 PM
RE: Polynomial with real coefficients —> array w/ real coeff - Gil - 11-27-2021, 03:33 PM
RE: Polynomial with real coefficients —> array w/ real coeff - gor1060 - 05-05-2023, 07:57 AM
RE: Polynomial with real coefficients —> array w/ real coeff - rprosperi - 05-05-2023, 12:03 PM
RE: Polynomial with real coefficients —> array w/ real coeff - Gil - 05-05-2023 02:03 PM
RE: Polynomial with real coefficients —> array w/ real coeff - gor1060 - 05-08-2023, 12:07 PM
|
User(s) browsing this thread: 1 Guest(s)