<?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>Subtracting the lowest n terms from a set</title>
		<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set</link>
		<description>Posts in the discussion thread &quot;Subtracting the lowest n terms from a set&quot; - How to sum({1,2,3,4,5})=sum({3,4,5})?</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 22 Apr 2026 14:04:40 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-1031544#post-2119638</guid>
				<title>Re: Subtracting the lowest n terms from a set</title>
				<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set#post-2119638</link>
				<description></description>
				<pubDate>Sat, 27 Sep 2014 14:29:56 +0000</pubDate>
				<wikidot:authorName>mrtaco6</wikidot:authorName>				<wikidot:authorUserId>1984691</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>THIS IS FOR THE TI-NSPIRE, NOT THE 83.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-1031544#post-2119637</guid>
				<title>Re: Subtracting the lowest n terms from a set</title>
				<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set#post-2119637</link>
				<description></description>
				<pubDate>Sat, 27 Sep 2014 14:29:38 +0000</pubDate>
				<wikidot:authorName>mrtaco6</wikidot:authorName>				<wikidot:authorUserId>1984691</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The problem I'm having is the &quot;and remove the last two elements&quot; part. I have the randint defined in a variable, not just ans. Ans wouldn't even work because I'm storing it in the middle of a program anyway. I know how to sort the list, but removing more than one element takes some work.</p> <p>Note: This is on the Ti-Nspire. For some reason, even though it's in the Nspire forum, everyone thinks it's for the Ti-83. If your advice is for the 83, then oh well.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-1031544#post-2119593</guid>
				<title>Re: Subtracting the lowest n terms from a set</title>
				<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set#post-2119593</link>
				<description></description>
				<pubDate>Sat, 27 Sep 2014 12:54:06 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Store the randint into list instead of dealing with ans. then you can use sortA and remove the last two elements</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-1031544#post-2119529</guid>
				<title>Re: Subtracting the lowest n terms from a set</title>
				<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set#post-2119529</link>
				<description></description>
				<pubDate>Sat, 27 Sep 2014 10:39:13 +0000</pubDate>
				<wikidot:authorName>mrtaco6</wikidot:authorName>				<wikidot:authorUserId>1984691</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The dim( function only outputs the number of elements, the storing as 3 thing doesn't work. Are you sure that's the right syntax for Ti-Nspire?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-1031544#post-2119419</guid>
				<title>Re: Subtracting the lowest n terms from a set</title>
				<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set#post-2119419</link>
				<description></description>
				<pubDate>Sat, 27 Sep 2014 04:54:55 +0000</pubDate>
				<wikidot:authorName>Electromagnet8</wikidot:authorName>				<wikidot:authorUserId>1820230</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You could sort the list from in descending order and delete the last n terms by defining the dimension of the list. Then, you can calculate the average of the dice you want after removing the lowest terms.<br /> For example,</p> <div class="code"> <pre><code>SortD(randInt(1,6,5 3-&gt;dim(Ans sum(Ans)/3</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-1031544#post-2119269</guid>
				<title>Re: Subtracting the lowest n terms from a set</title>
				<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set#post-2119269</link>
				<description></description>
				<pubDate>Sat, 27 Sep 2014 00:35:27 +0000</pubDate>
				<wikidot:authorName>mrtaco6</wikidot:authorName>				<wikidot:authorUserId>1984691</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>What do you mean use a list? The randint function generates a list already.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-1031544#post-2119239</guid>
				<title>Re: Subtracting the lowest n terms from a set</title>
				<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set#post-2119239</link>
				<description></description>
				<pubDate>Fri, 26 Sep 2014 23:33:51 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>try using a list instead. itll be easier to manipulate</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-1031544#post-2119230</guid>
				<title>Subtracting the lowest n terms from a set</title>
				<link>http://tibasicdev.wikidot.com/forum/t-1031544/subtracting-the-lowest-n-terms-from-a-set#post-2119230</link>
				<description></description>
				<pubDate>Fri, 26 Sep 2014 23:06:48 +0000</pubDate>
				<wikidot:authorName>mrtaco6</wikidot:authorName>				<wikidot:authorUserId>1984691</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>So I'm doing an informal study lately of probability, specifically dice rolling. I've found that if you roll three dice and add them up, the average is about 10.5. If you roll four dice, ignore the lowest roll, and add up the three highest dice, the average is 12.24. I want to try rolling 5 dice and ignoring the lowest 2, but so far I've been rolling them on the calculator to get the averages. Rolling three dice was easy; I just did a summation of sum(randint(1,6,3)). Four dice was trickier, but then I remembered the min( command, and just did a summation of sum(randint(1,6,4))-min(randint(1,6,4)) (the same randint- I just stored the first one as a variable) and that worked out perfectly. I want to do 5 dice now, and tried using the min( command in weird and roundabout ways, but so far nothing's worked. Any help?</p> <p>For the record, this stemmed from a conversation with my friend about rolling stats for D&amp;D, in which one of the most common ways is to roll 4 dice and drop the lowest. We want to find the averages for different methods to roll stats.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>