Polynomial with real coefficients —> array w/ real coeff

05052023, 02:03 PM
(This post was last modified: 05052023 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  11222021, 03:09 PM
RE: Polynomial with real coefficients  Albert Chan  11222021, 05:12 PM
RE: Polynomial with real coefficients  Gil  11222021, 05:51 PM
RE: Polynomial with real coefficients  Gil  11232021, 11:23 AM
RE: Polynomial with real coefficients —> array w/ real coeff  Gil  11242021, 03:02 PM
RE: Polynomial with real coefficients —> array w/ real coeff  Gil  11272021, 03:33 PM
RE: Polynomial with real coefficients —> array w/ real coeff  gor1060  05052023, 07:57 AM
RE: Polynomial with real coefficients —> array w/ real coeff  rprosperi  05052023, 12:03 PM
RE: Polynomial with real coefficients —> array w/ real coeff  Gil  05052023 02:03 PM
RE: Polynomial with real coefficients —> array w/ real coeff  gor1060  05082023, 12:07 PM

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