<?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>Inputting a function as a variable</title>
		<link>http://tibasicdev.wikidot.com/forum/t-17096482/inputting-a-function-as-a-variable</link>
		<description>Posts in the discussion thread &quot;Inputting a function as a variable&quot; - Actually a TI-89 basic question: I can&#039;t get a user pre-defined function to work once input as a variable.</description>
				<copyright></copyright>
		<lastBuildDate>Fri, 13 Mar 2026 13:42:08 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-17096482#post-6929674</guid>
				<title>Inputting a function as a variable</title>
				<link>http://tibasicdev.wikidot.com/forum/t-17096482/inputting-a-function-as-a-variable#post-6929674</link>
				<description></description>
				<pubDate>Sun, 20 Apr 2025 10:32:29 +0000</pubDate>
				<wikidot:authorName>gkenyon</wikidot:authorName>				<wikidot:authorUserId>9658342</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>[Edit- I found a post on programming functions further down the forum and will be working with the info in there]<br /> I'm a total beginner and actually grinding it out on a TI-89. The program is a (hopefully) simple implementation of the midpoint rule for approximating the value of an integral. The first of two basic obstacles is bringing in the function being integrated in a way that allows it to use a list as its mathematical variable.. I am hopeful that once this is clear to me I'll be able to work out the list dimension mismatch problems I'm having on my own.<br /> My first attempt for getting the inputs was using the Request command and converting the strings to numerical variables, which would have been optimum due to the sense of user-friendliness. Once I couldn't make the function input work properly using Request, I tried the Input command. Likewise no dice. Here's the pertinent part of the code:</p> <p><strong>bold text</strong><br /> : Input &quot;function&quot;,g<br /> :Define g(x)=g<br /> (creates a partition of the interval of interest and stores it as list1)<br /> :Define g(list1)=list2</p> <p>So, the above doesn't work and I think it's the function's problem rather than the list's problem. I'm looking for the output in the list editor and list1 is fine but list2 has a &quot;data type&quot; error.<br /> I tried using FUNC, ENDFUNC but it won't accept the numerical variable, it needs explicit direction. I don't want to apply a function that lives within the program&#8230; I want to apply the user's own function.</p> <p>Thanks for any thoughts whatsoever!</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>