<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, choose only positive root, put many in a list, then choose smallest value</title>
    <link>http://www.mapleprimes.com/questions/144878-Choose-Only-Positive-Root-Put-Many</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 18:47:10 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 18:47:10 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, choose only positive root, put many in a list, then choose smallest value</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, choose only positive root, put many in a list, then choose smallest value</title>
      <link>http://www.mapleprimes.com/questions/144878-Choose-Only-Positive-Root-Put-Many</link>
    </image>
    <item>
      <title>A way</title>
      <link>http://www.mapleprimes.com/questions/144878-Choose-Only-Positive-Root-Put-Many?ref=Feed:MaplePrimes:choose only positive root, put many in a list, then choose smallest value:Comments#answer144879</link>
      <itunes:summary>&lt;p&gt;For an example I create a list of lists randomly. I haven't bothered to make sure one is positive the other negative. &lt;br&gt;&lt;br&gt;L:=RandomTools:-Generate(listlist(float(range=-1..1),7,2));&lt;br&gt;#Selecting positive elements. In your case the result will be a list of lists with each just one element.&lt;br&gt;select~(type,L,positive);&lt;br&gt;#Removing the list brackets at the same time:&lt;br&gt;L1:=(op@select)~(type,L,positive);&lt;br&gt;#In your case L1 will have as many elements as L &lt;br&gt;#Finding the minimum&lt;br&gt;min(op(L1));&lt;br&gt;#Finding the minimum and its position (if that is important)&lt;br&gt;ListTools:-FindMinimalElement(L1,position);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;For an example I create a list of lists randomly. I haven't bothered to make sure one is positive the other negative. &lt;br&gt;&lt;br&gt;L:=RandomTools:-Generate(listlist(float(range=-1..1),7,2));&lt;br&gt;#Selecting positive elements. In your case the result will be a list of lists with each just one element.&lt;br&gt;select~(type,L,positive);&lt;br&gt;#Removing the list brackets at the same time:&lt;br&gt;L1:=(op@select)~(type,L,positive);&lt;br&gt;#In your case L1 will have as many elements as L &lt;br&gt;#Finding the minimum&lt;br&gt;min(op(L1));&lt;br&gt;#Finding the minimum and its position (if that is important)&lt;br&gt;ListTools:-FindMinimalElement(L1,position);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>144879</guid>
      <pubDate>Thu, 21 Mar 2013 18:06:20 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>Thanks</title>
      <link>http://www.mapleprimes.com/questions/144878-Choose-Only-Positive-Root-Put-Many?ref=Feed:MaplePrimes:choose only positive root, put many in a list, then choose smallest value:Comments#comment144921</link>
      <itunes:summary>&lt;p&gt;Thanks Preben. &amp;nbsp;These are some commands I wasn't familiat with, and I'll play around with them and let you know how it goes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Justin&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks Preben. &amp;nbsp;These are some commands I wasn't familiat with, and I'll play around with them and let you know how it goes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Justin&lt;/p&gt;</description>
      <guid>144921</guid>
      <pubDate>Fri, 22 Mar 2013 01:28:00 Z</pubDate>
      <itunes:author>jmw193</itunes:author>
      <author>jmw193</author>
    </item>
  </channel>
</rss>