This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
Author Message
JapanLover


Newbie


Joined: 12 Jun 2003
Posts: 4

Posted: 14 Jun 2003 11:47:26 am    Post subject:

This might sound stupid but what does the dim command do and how and where do you use it?
Back to top
Spyderbyte


Advanced Member


Joined: 29 May 2003
Posts: 372

Posted: 14 Jun 2003 11:58:51 am    Post subject:

You use it with matricies/lists.

3->dim(L1

L1 will now have three spaces {0,0,0} (Or the first three elements you had in it before {6,5,4,3,2,1} would become {6,5,4} and {1,2} would become {1,2,0}

dim(L1->A

A will have the number of spaces in L1

{2,3}->dim([A]

Matrix A will now be [[0,0,0] (All of the number stuff still applies)
[0,0,0]]

And finally. dim([A]->L1

L1 contains the number of rows and columns.

You can find another explaination in the Matrix and List chapters in your manual. :D

Hope this helps!

Spyderbyte
Back to top
JapanLover


Newbie


Joined: 12 Jun 2003
Posts: 4

Posted: 14 Jun 2003 01:15:31 pm    Post subject:

Thanks A lot Very Happy
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 14 Jun 2003 08:02:27 pm    Post subject:

You can also use it to check if there is any data is a list already without overwriting it! Example, if list1 had the data (0,0,0,1), Just use the 4->dim(list1 and it won't overwrite the data, and create the list if it is already not made!

Hope this helps, Tyler Laughing
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement