how to reference a two-dimensional matrix in a program

707 views
Skip to first unread message

Don Shepherd

unread,
Sep 9, 2010, 10:19:10 AM9/9/10
to tinspire
On the TI-83/84, it would be done this way for a 2x3 matrix:

[[1,2,3][4,5,6]] sto [A]
you would then refer to an element within matrix A as [A](2,1), for
example.

I can't find a description in any of the NSpire documentation of how
to do this within a program on the NSpire, not using the matrix
template.

I'd appreciate some help. Thanks.



Don Shepherd

unread,
Sep 9, 2010, 10:30:52 AM9/9/10
to tinspire
OK, upon experimenting a bit, I found out what works:

[[1,2,3][4,5,6]] sto a (just like the 83/84)
but to refer to an element, it's a[1,2]

Is this documented anywhere?

Don

Nelson Sousa

unread,
Sep 9, 2010, 11:41:34 AM9/9/10
to tins...@googlegroups.com


yep, the user manual ;)

On a more serious note, the TI-89 Titanium or Voyage 200 user guide is a very good reference, as the syntax between these and the Nspire is very similar and most functions/commands are common. 

For example, you can browse through the chapter about matrices and you find the notation to reference matrix/vector elements.


Cheers,
Nelson


--
To post to this group, send email to tins...@googlegroups.com
To unsubscribe send email to tinspire+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
The tns documents shared by group members are archived at
http://lafacroft.com/archive/nspire.php

Levak Borok

unread,
Sep 9, 2010, 12:42:18 PM9/9/10
to tins...@googlegroups.com

Don Shepherd

unread,
Sep 9, 2010, 12:43:31 PM9/9/10
to tinspire
Nelson, on page 146 of the Teacher's Edition (2.0) software guide, it
does say you can enter a matrix thusly:

[1,2,3;4,5,6] sto a
as opposed to [[1,2,3][4,5,6]] sto a

which is less cumbersome, of course. That's good to know (providing
you can remember where the ; is).

But I don't see any reference in that publication to how to refer to
an individual matrix element, such as a[2,1]. This is different than
on the 83/84.

I did find a reference in the TI-89 Titanium guidebook on page 92
under "Exploring a 3x3 Matrix" to how to refer to an individual matrix
element, but you've sure got to look for it.

Some NSpire programmers won't have those old guides because they don't
own those old calculators. It would be nice if the Teacher's and
Student's Edition software guide had a section on "how to reference
individual list elements and matrix elements." This would be very
useful both in programs and in the calculator screens for those who
are using lists and matrices.

Don
> > To unsubscribe send email to tinspire+u...@googlegroups.com<tinspire%2Bunsubscribe@googlegroups.c­om>
> > For more options, visit this group at
> >http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
> > The tns documents shared by group members are archived at
> >http://lafacroft.com/archive/nspire.php- Hide quoted text -
>
> - Show quoted text -

Don Shepherd

unread,
Sep 9, 2010, 12:55:11 PM9/9/10
to tinspire
Levak, those reference guides (which I consulted prior to asking this
question) don't say anything about how to refer to an individual
matrix element, like A[3,2] for example. If they do, I couldn't find
it.

Don

On Sep 9, 12:42 pm, Levak Borok <leva...@gmail.com> wrote:
> That's all you need to know before asking questions like that ;)
>
> TI-nSpire Referrence Guide 2.1http://education.ti.com/educationportal/downloadcenter/SoftwareDetail...
>
> <http://education.ti.com/educationportal/downloadcenter/SoftwareDetail...>TI-nSpire
> CAS Referrence Guide 2.1http://education.ti.com/educationportal/downloadcenter/SoftwareDetail...

Nelson Sousa

unread,
Sep 9, 2010, 1:02:29 PM9/9/10
to tins...@googlegroups.com

that's why I keep a PDF copy of the 89 Titanium user manual and Voyage 200 user manual always at hand ;) 


Cheers,
Nelson



Levak Borok

unread,
Sep 9, 2010, 1:13:37 PM9/9/10
to tins...@googlegroups.com
p.53 : getVarInfo()

2010/9/9 Don Shepherd <shep...@iglou.com>

--

Don Shepherd

unread,
Sep 9, 2010, 2:13:00 PM9/9/10
to tinspire
Thanks, Levak. I see what you are referring to, but unless you happen
to know that getvarinfo has examples of how to refer to matrix
elements, you'll overlook that. I think it would be much more useful
to the user/programmer if they spelled this out in the software user
guide somewhere, either in the variables section or the programming
section or the calculator section. I looked through the reference
manual and missed this.

Don

On Sep 9, 1:13 pm, Levak Borok <leva...@gmail.com> wrote:
> p.53 : getVarInfo()
>
> 2010/9/9 Don Shepherd <sheph...@iglou.com>
>
>
>
> > Levak, those reference guides (which I consulted prior to asking this
> > question) don't say anything about how to refer to an individual
> > matrix element, like A[3,2] for example.  If they do, I couldn't find
> > it.
>
> > Don
>
> > On Sep 9, 12:42 pm, Levak Borok <leva...@gmail.com> wrote:
> > > That's all you need to know before asking questions like that ;)
>
> > > TI-nSpire Referrence Guide 2.1
> >http://education.ti.com/educationportal/downloadcenter/SoftwareDetail...
>
> > > <http://education.ti.com/educationportal/downloadcenter/SoftwareDetail..
> > .>TI-nSpire
> > > CAS Referrence Guide 2.1
> > To unsubscribe send email to tinspire+u...@googlegroups.com<tinspire%2Bunsubscribe@googlegroups.c­om>
> > For more options, visit this group at
> >http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
> > The tns documents shared by group members are archived at
Reply all
Reply to author
Forward
0 new messages