<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Define two functions in IML in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Define-two-functions-in-IML/m-p/8813#M6</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know how to define the first function, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start f(x);&lt;/P&gt;&lt;P&gt;a=x[1];b=x[2];c=x[3];&lt;/P&gt;&lt;P&gt;f1=a complex expression involving a,b and c;&lt;/P&gt;&lt;P&gt;return(f1);&lt;/P&gt;&lt;P&gt;finish f;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I want to define another function g(z), where z=(x[1],x[2]) a subvector of x, such that g(z)=f(x[1],x[2],x[3]=4)? Is there a simple way to do it in IML? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 18:56:41 GMT</pubDate>
    <dc:creator>JerryLee</dc:creator>
    <dc:date>2011-12-05T18:56:41Z</dc:date>
    <item>
      <title>Define two functions in IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Define-two-functions-in-IML/m-p/8813#M6</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know how to define the first function, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start f(x);&lt;/P&gt;&lt;P&gt;a=x[1];b=x[2];c=x[3];&lt;/P&gt;&lt;P&gt;f1=a complex expression involving a,b and c;&lt;/P&gt;&lt;P&gt;return(f1);&lt;/P&gt;&lt;P&gt;finish f;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I want to define another function g(z), where z=(x[1],x[2]) a subvector of x, such that g(z)=f(x[1],x[2],x[3]=4)? Is there a simple way to do it in IML? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 18:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Define-two-functions-in-IML/m-p/8813#M6</guid>
      <dc:creator>JerryLee</dc:creator>
      <dc:date>2011-12-05T18:56:41Z</dc:date>
    </item>
    <item>
      <title>Define two functions in IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Define-two-functions-in-IML/m-p/8814#M7</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;start f1(a,b,c);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp; f1=a complex expression involving a,b and c;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp; return(f1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt;finish f1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;start f(x);&lt;/P&gt;&lt;P&gt;return( f1(x[1], x[2], x[3]) );&lt;/P&gt;&lt;P&gt;finish f;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start g(x);&lt;/P&gt;&lt;P&gt;return( f1(x[1], x[2], 4) );&lt;/P&gt;&lt;P&gt;finish f;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 19:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Define-two-functions-in-IML/m-p/8814#M7</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2011-12-05T19:01:45Z</dc:date>
    </item>
  </channel>
</rss>

