Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:calculator:progs:dm41x_progs [14/01/26 17:09 GMT] – [DM41x RAW] john | public:calculator:progs:dm41x_progs [14/02/26 11:19 GMT] (current) – [Using Solve and Integrate together] john | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ====== DM41X Progs ====== | ====== DM41X Progs ====== | ||
| - | ==== Useful Memo prog ==== | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | By Gary Goodman from HP document collection. Dated 24/3/85 | ||
| ===== DM41x RAW ===== | ===== DM41x RAW ===== | ||
| - | |||
| - | * Benchmark progs | ||
| |HP Maths Benchmark |{{ : | |HP Maths Benchmark |{{ : | ||
| Line 18: | Line 11: | ||
| |8-Queens Benchmark |{{ : | |8-Queens Benchmark |{{ : | ||
| |Savage Benchmark |{{ : | |Savage Benchmark |{{ : | ||
| - | ===== TI : calculate | + | |Memo - as below - uses ascii file name " |
| + | |TR - from HP41cx User guide vol. 2| {{ : | ||
| + | |Sigma - from HP41cx User guide vol.2| {{ : | ||
| + | |||
| + | |||
| + | ===== Using Solve and Integrate together ===== | ||
| + | |||
| + | * from HP343C handbook | ||
| + | * DM41X version uses '' | ||
| + | |||
| + | - Create a '' | ||
| + | - Create the program that is to be solved and which has as it's function an integral | ||
| + | - Create the program that defines the integral | ||
| + | |||
| + | === MYSOLVE === | ||
| + | |||
| + | < | ||
| + | LBL ¬MYSOLVE | ||
| + | ¬MOD // the label of the program to be solved is put in ALPHA | ||
| + | SOLVE // we XEQ SOLVE (the Advantage Pac solver) | ||
| + | RTN | ||
| + | </ | ||
| + | |||
| + | === Solve : MOD === | ||
| + | |||
| + | The program to be solved | ||
| + | |||
| + | < | ||
| + | LBL ¬MOD | ||
| + | ¬BESSEL | ||
| + | STO 00 // We store our current guess for X in R 00 to be accessible by the integral finction | ||
| + | 0 // put upper and lower limits for the integration in Y and X | ||
| + | PI | ||
| + | INTEG // xeq INTEG from Advantage Pac | ||
| + | ABS // our current guess, make it positive | ||
| + | X< | ||
| + | ClX // if our guess has returned a value from the integral that's less than the inherent accuracy then that's GOOD ENOUGH, we set X to zero and SOLVE completes | ||
| + | X≠0? | ||
| + | LastX | ||
| + | RTN | ||
| + | |||
| + | </ | ||
| + | |||
| + | === Integral : BESSEL === | ||
| + | |||
| + | < | ||
| + | LBL ¬BESSEL | ||
| + | SIN | ||
| + | RCL 00 | ||
| + | * | ||
| + | COS | ||
| + | PI | ||
| + | / | ||
| + | RTN | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | === Running it === | ||
| + | |||
| + | * '' | ||
| + | * put initial guesses in '' | ||
| + | * < | ||
| + | * try '' | ||
| + | * Run '' | ||
| + | |||
| + | After a few minutes of Goose-flying we get the answer '' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Useful Memo prog ===== | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | By Gary Goodman from HP document collection. Dated 24/3/85 | ||
| + | |||
| + | |||
| + | ===== 65c22 Timer values ===== | ||
| + | |||
| + | ** for VIA Tone generator ** | ||
| + | |||
| + | |||
| + | ** Needs [[..: | ||
| - | ==== Counter calculation ==== | ||
| The required count is calculated from '' | The required count is calculated from '' | ||
| Line 81: | Line 157: | ||
| RTN | RTN | ||
| </ | </ | ||
| + | |||
| + | |||
| ===== BFil ===== | ===== BFil ===== | ||
| Line 298: | Line 376: | ||
| Page last updated: ~~LASTMOD~~ | Page last updated: ~~LASTMOD~~ | ||
| - | |||
| - | {{tag> | ||
| - | |||
| - | |||
| Line 310: | Line 384: | ||
| - | {{tag>}} | + | {{tag>calculator dm41x}} |