<?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 Mathematical calculations in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54108#M316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. SAS has already offer such function. About detail ,refer to documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data have;
&amp;nbsp; input a b;
&amp;nbsp; div=divide(a,b);
&amp;nbsp; cards;
1 0
0 0
0 1
1 .
0 1
. 1
;
run;
proc print;run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 02:45:02 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-11-28T02:45:02Z</dc:date>
    <item>
      <title>Mathematical calculations</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54106#M314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;I am wondering how far SAS can be used for mathematical calculations. Is there some way to use SAS for such operations like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;a)&amp;nbsp;&amp;nbsp; 1/0 = infinity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0/0 =NaN (not a number)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;b) Somehow solving formulas. For example like in MatLab finding differential:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;diff(X^3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;ans=3X^2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;Sometimes it seems that SAS is a super-tool with all included &lt;/SPAN&gt;J&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; Or maybe this is an area where SAS can’t be used?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;Ieva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 11:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54106#M314</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-11-25T11:39:57Z</dc:date>
    </item>
    <item>
      <title>Mathematical calculations</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54107#M315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a) SAS uses missing values to represent NaNs. In statistics, an observation can be a NaN if it is missing for a statistical reason (for example, a survey question was left unanswered) or for a mathematical reason (the log of a non-positive number).&amp;nbsp; SAS supports 28 missing values: see &lt;A href="http://analytics.ncsu.edu/sesug/2005/TU06_05.PDF"&gt;http://analytics.ncsu.edu/sesug/2005/TU06_05.PDF&lt;/A&gt; for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some people assign the .P missing value to mean "positive infinity" and .N to mean "negative infinity," but most don't. To me a NaN is a NaN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) MATLAB licenses (or bought?) the Maple symbolic algebra engine. No, SAS does not include symbolic integration or differentiation. Some SAS procedures support automatic differentiation in order to compute the gradients and Jacobians of objective functions, but that feature is not universal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2011 22:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54107#M315</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2011-11-26T22:57:27Z</dc:date>
    </item>
    <item>
      <title>Mathematical calculations</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54108#M316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. SAS has already offer such function. About detail ,refer to documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data have;
&amp;nbsp; input a b;
&amp;nbsp; div=divide(a,b);
&amp;nbsp; cards;
1 0
0 0
0 1
1 .
0 1
. 1
;
run;
proc print;run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 02:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54108#M316</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-11-28T02:45:02Z</dc:date>
    </item>
    <item>
      <title>Mathematical calculations</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54109#M317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you Rick and Ksharp for the explanations!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 07:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Mathematical-calculations/m-p/54109#M317</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-11-28T07:04:30Z</dc:date>
    </item>
  </channel>
</rss>

