(15C) Nth Degree Polynomial Program
|
12-03-2019, 01:42 AM
(This post was last modified: 12-15-2022 02:55 AM by Gene.)
Post: #1
|
|||
|
|||
(15C) Nth Degree Polynomial Program
Hello all, this program calculates a y value for any degree polynomial (between 1 and 56 theoretically, or more with a memory expansion) given an x value and matrix A containing the coefficients of the expression. This is useful for using the SOLVE and ∫yx functions, and for using Linear regression to plot secant lines. The program uses Horner's Method, which is outlined on pg. 79 of the latest 15c manual. Unfortunately, this program completely obliterates the stack so don't put anything important in there!
If you're keying this program in manually; be mindful of the USER mode instructions. A handy trick for keying the program in at some location other than 000 is to add however many R/S instructions is necessary to make the line number a multiple of 10, making it much easier to compare line numbers and ensure accurate entry. Once finished (leave them in until after a test run) you may optionally execute GTO A in run mode followed by a BST in program mode to easily position the cursor on the extraneous instructions for removal. Usage
Code:
if you're using this 15c emulator and a DM15, you can simply copy this code as-is into a .15c file and upload it. Hope you enjoy!! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(15C) Nth Degree Polynomial Program - 15-lennyphelan - 12-03-2019 01:42 AM
RE: 15C Nth Degree Polynomial Program - Gamo - 12-03-2019, 06:08 AM
RE: 15C Nth Degree Polynomial Program - 15-lennyphelan - 12-03-2019, 09:51 PM
RE: 15C Nth Degree Polynomial Program - Thomas Klemm - 11-06-2022, 02:15 PM
|
User(s) browsing this thread: 1 Guest(s)