Post Reply 
(42S) Function Table
02-21-2019, 11:57 AM
Post: #3
RE: (42S) Function Table
We can GROW the matrix:
Code:
00 { 45-Byte Prgm }
01▸LBL "FTAB"
02 STO 02
03 R↓
04 STO 01
05 R↓
06 STO 00
07 1
08 2
09 NEWMAT
10 EDIT
11 GROW
12▸LBL 00
13 RCL 00
14 →
15 RCL 00
16 XEQ "FX"
17 →
18 RCL 01
19 STO+ 00
20 DSE 02
21 GTO 00
22 DELR
23 EXITALL
24 END

(02-21-2019 08:41 AM)ijabbott Wrote:  Also, I don't think RTN is necessary when it precedes END.

In addition to that I don't see a reason to use MVAR.
Code:
00 { 10-Byte Prgm }
01▸LBL "FX"
02 X↑2
03 LASTX
04 E↑X
05 ×
06 END

The value of \(x\) can be found in register 00.

Example:

0 ENTER
0.1 ENTER
10
XEQ "FTAB"

x: [ 10×2 Matrix ]

This creates the same matrix as in Eddie's example:

0.0 0.0000
0.1 0.0111
0.2 0.0489
0.3 0.1215
0.4 0.2387
0.5 0.4122
0.6 0.6560
0.7 0.9867
0.8 1.4243
0.9 1.9923


Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(42S) Function Table - Eddie W. Shore - 02-18-2019, 05:04 AM
RE: (42S) Function Table - ijabbott - 02-21-2019, 08:41 AM
RE: (42S) Function Table - Thomas Klemm - 02-21-2019 11:57 AM
RE: (42S) Function Table - ijabbott - 02-22-2019, 01:21 AM
RE: (42S) Function Table - Thomas Klemm - 02-22-2019, 07:18 AM
RE: (42S) Function Table - Eddie W. Shore - 02-22-2019, 02:02 PM
RE: (42S) Function Table - Thomas Klemm - 02-22-2019, 08:58 PM



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