<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>help with program please</title>
		<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please</link>
		<description>Posts in the discussion thread &quot;help with program please&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Tue, 21 Jul 2026 20:15:20 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-512188</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-512188</link>
				<description></description>
				<pubDate>Thu, 18 Jun 2009 15:13:17 +0000</pubDate>
				<wikidot:authorName>rhombus p</wikidot:authorName>				<wikidot:authorUserId>240559</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>oh, woops</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-512183</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-512183</link>
				<description></description>
				<pubDate>Thu, 18 Jun 2009 15:06:19 +0000</pubDate>
				<wikidot:authorName>DarkerLine</wikidot:authorName>				<wikidot:authorUserId>961</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>That is in fact what we're talking about here.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-512075</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-512075</link>
				<description></description>
				<pubDate>Thu, 18 Jun 2009 12:14:09 +0000</pubDate>
				<wikidot:authorName>rhombus p</wikidot:authorName>				<wikidot:authorUserId>240559</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>couldn't you write it in C and then compile it to asm? that would be faster.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-511628</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-511628</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 23:46:59 +0000</pubDate>
				<wikidot:authorName>DarkerLine</wikidot:authorName>				<wikidot:authorUserId>961</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It depends on what you're doing. Math programs are probably best written in TI-Basic (a C program compiled with TIGCC will use the same routines anyway, so it won't be any faster, but it will be more annoying to write). Anything else, C is fairly good for, and some people prefer writing programs on the computer anyway.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-511620</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-511620</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 23:27:35 +0000</pubDate>
				<wikidot:authorName>pipapowerpongo</wikidot:authorName>				<wikidot:authorUserId>340496</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>thanks a lot thats what i was looking for</p> <p>i know a bit of c++, and was looing for pointers but couldnt find any similar in tibasic</p> <p>is there anywhere a place in the forum where everybody puts on his programms for everybody, i guess thats the best way to learn it!</p> <p>i still got 1 question: what do u think about writing in c, compiling on computer and then sending it to the calculator? is that a better way, or just more complicated?</p> <p>thanks again</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-511602</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-511602</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 23:00:01 +0000</pubDate>
				<wikidot:authorName>DarkerLine</wikidot:authorName>				<wikidot:authorUserId>961</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Okay here is what is going on.</p> <p>When the calculator reaches Prompt mat1 in the code, it asks you for a value to store to the variable mat1. You enter q, so it takes the value of the matrix q, and stores it to a new matrix called mat1. Then readmat(&quot;mat1&quot;), due to the indirection tricks we used, inputs values to store into mat1. The matrix q never gets modified.</p> <p>If you want to modify a variable outside the program, you'll need the <em>name</em> of the variable, as opposed to the <em>value</em> of the variable, and Prompt won't help you with that. You want to read a string (variable names are strings), so use InputStr. In this case, you'd replace Prompt mat1 with InputStr name1. I use a variable called name1 to emphasize that we're not dealing with a matrix here, but the name of a matrix variable.</p> <p>Then, since we already have a variable name, we can call readmat(name1) with no additional quotes necessary. If you run this program and enter q when prompted, name1 will be equal to &quot;q&quot;, and readmat(name1) will be readmat(&quot;q&quot;), and read entries into the variable q.</p> <p>As for the rest of matradd(): change the part for the second matrix in the same way. For the last part, to get at the values of the matrices whose names we have, we'll need to use # again:</p> <div class="code"> <pre><code>Disp #name1, #name2 Disp &quot;+&quot;, &quot;=&quot; Disp #name1+#name2</code></pre></div> <p>If you ever end up learning a real programming language (such as C) you'll learn about pointers. With the # command, variable names are like pointers in TI-Basic, except real pointers use memory addresses instead. Probably best not to worry about this too much for now.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-511564</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-511564</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 22:03:33 +0000</pubDate>
				<wikidot:authorName>pipapowerpongo</wikidot:authorName>				<wikidot:authorUserId>340496</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>i guess my question is not really clear<br /> here the codes</p> <div class="code"> <pre><code>readmat(mat) Prgm ClrIO Local d,k,l,i,j,x dim(#mat)-&gt;d d[1]-&gt;k d[2]-&gt;l Disp k,l For i,1,k,1 ClrIO For j,1,l,1 Disp &quot;a&quot;&amp;string(i)&amp;&quot;,&quot;&amp;string(j)&amp;&quot;=&quot; Input x x-&gt;#mat[i,j] EndFor EndFor matradd() Prgm ClrIO Disp &quot;1. matrix&quot; Prompt mat1 readmat(&quot;mat1&quot;) Disp &quot;2. matrix&quot; Prompt mat2 readmat(&quot;mat2&quot;) Disp mat1,mat2 Disp &quot;+&quot;,&quot;=&quot; Disp mat1+mat2 Disp EndPrgm EndPrgm</code></pre></div> <p>in home i define 2 matrixes 2x2 and name them q and w<br /> then i call matradd<br /> and it works, so it shows the two new matrixes q and w and the addition of theese both matrixes<br /> but in home q and w are still the same then before<br /> so if i wanna use the program readmat as a subprogramm in another programm it doesnt do what i wannt it to</p> <p>i hope this make my question a bit clearer a bit clearer now</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-511563</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-511563</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 22:02:56 +0000</pubDate>
				<wikidot:authorName>DarkerLine</wikidot:authorName>				<wikidot:authorUserId>961</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Unfortunately, there isn't a better way. If you used a function, you could return a variable, but that isn't quite the same thing, and you can't use Input in a function anyway.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-511547</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-511547</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 21:25:05 +0000</pubDate>
				<wikidot:authorName>pipapowerpongo</wikidot:authorName>				<wikidot:authorUserId>340496</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>it works!!!!!!!<br /> thanks a lot</p> <p>but isnt there another more elegant way by returning a value of a funktion, i mean by entering into a program with some varialble &quot;prog(variable), doing something with it and giving that variable another value</p> <p>like thist you have to remember that you have to put in a string so enter with &quot;&quot;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-511476</guid>
				<title>Re: help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-511476</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 19:51:42 +0000</pubDate>
				<wikidot:authorName>DarkerLine</wikidot:authorName>				<wikidot:authorUserId>961</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The indirection command, #, does what you want: given a string such as &quot;x&quot;, #&quot;x&quot; refers to the variable with that name (in this case, x).</p> <p>For your program, you'd change dim(mat) to dim(#mat), and x→mat[i,j] to x→#mat[i,j]. Then to input the components of A, call readmat(&quot;A&quot;) (the argument should be a string, since it refers to the <em>name</em> of the variable).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-163349#post-511465</guid>
				<title>help with program please</title>
				<link>http://tibasicdev.wikidot.com/forum/t-163349/help-with-program-please#post-511465</link>
				<description></description>
				<pubDate>Wed, 17 Jun 2009 19:26:16 +0000</pubDate>
				<wikidot:authorName>pipapowerpongo</wikidot:authorName>				<wikidot:authorUserId>340496</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>hy everybody,</p> <p>i'm new in ti basic programming so my queston may be a bit stupid but i'm glad for any help<br /> i wanted to wrtie a prog to read a matrix that i can/could use as a subprogramm</p> <p>so imagine i have created a matrix with &quot; newmat(3,3)-&gt;A<br /> so the matrix A is filled with zeroes</p> <p>now i want to start the prog readmat(A) that asks step by step the components of A</p> <p>now my problem: my program works in the way that i can create the new matrix but it has a different name ( in my case it is &quot;mat&quot; but i want the name to be the name as it were before so &quot;A&quot;</p> <p>how i get the &quot;mat&quot; into &quot;A&quot; inside the program<br /> thanks a lot in advance</p> <div class="code"> <pre><code>readmat(mat) prgm dim(mat)-&gt;d d[1]-&gt;k d[2]-&gt;l for i,1,k,1 for j,1.l.1 input x x-&gt;mat[i,j] end for end for endprgm</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>