<?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 Re: 0^0 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560270#M156630</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183606"&gt;@oves&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If need be, you could define your own power function and use this in place of the exponential operator:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=work.funcs.test;
function pow(x, y);
  z=if x=y=0 then 1 else x**y;
  return(z);
endsub;
run;

options cmplib=work.funcs;

data test;
input a b;
c=pow(a,b);
cards;
2 3
0 0
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;: Hilarious! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This beats "&lt;FONT face="courier new,courier"&gt;y=(.1+.2-.3)**0;&lt;/FONT&gt;" as a fun answer to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183606"&gt;@oves&lt;/a&gt;'s question.&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 20:03:33 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2019-05-20T20:03:33Z</dc:date>
    <item>
      <title>0^0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560253#M156623</link>
      <description>&lt;P&gt;data test;&lt;BR /&gt;x=2**3;&lt;BR /&gt;y=0**0;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results:&amp;nbsp;&lt;BR /&gt;x=8&lt;BR /&gt;y=.&lt;BR /&gt;In the log as for y:&amp;nbsp;NOTE: Invalid argument(s) to the exponential operator "**".&lt;BR /&gt;&lt;BR /&gt;In another software (tested in R): 0**0 = 1&lt;BR /&gt;&lt;BR /&gt;Question: How to weite this in SAS to get 1 as the result?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 19:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560253#M156623</guid>
      <dc:creator>oves</dc:creator>
      <dc:date>2019-05-20T19:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: 0^0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560254#M156624</link>
      <description>&lt;P&gt;Well, it's not equal to 1 according to many authorities, it has no agreed upon value, so SAS is giving a reasonable answer, as is R.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to &lt;A href="https://en.wikipedia.org/wiki/Zero_to_the_power_of_zero" target="_self"&gt;Wikipedia&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The debate over the definition of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mwe-math-element"&gt;&lt;IMG class="mwe-math-fallback-image-inline" src="https://wikimedia.org/api/rest_v1/media/math/render/svg/106f0c4e1cbccbfcbb61001a8c17b8427c65366d" alt="0^{0}" aria-hidden="true" border="0" /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;has been going on at least since the early 19th century. At that time, most mathematicians agreed that&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mwe-math-element"&gt;&lt;IMG class="mwe-math-fallback-image-inline" src="https://wikimedia.org/api/rest_v1/media/math/render/svg/478100bc5766c6af537439ef9309f9ddf2f9a6ff" alt="0^{0}=1" aria-hidden="true" border="0" /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, until in 1821&amp;nbsp;&lt;/SPAN&gt;&lt;A class="mw-redirect" title="Cauchy" href="https://en.wikipedia.org/wiki/Cauchy" target="_blank" rel="noopener"&gt;Cauchy&lt;/A&gt;&lt;SUP id="cite_ref-13" class="reference"&gt;&lt;A href="https://en.wikipedia.org/wiki/Zero_to_the_power_of_zero#cite_note-13" target="_blank" rel="noopener"&gt;[13]&lt;/A&gt;&lt;/SUP&gt;&lt;SPAN&gt;&amp;nbsp;listed&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mwe-math-element"&gt;&lt;IMG class="mwe-math-fallback-image-inline" src="https://wikimedia.org/api/rest_v1/media/math/render/svg/106f0c4e1cbccbfcbb61001a8c17b8427c65366d" alt="0^{0}" aria-hidden="true" border="0" /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;along with expressions like&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mwe-math-element"&gt;&lt;IMG class="mwe-math-fallback-image-inline" src="https://wikimedia.org/api/rest_v1/media/math/render/svg/605e6713cb9ed4310d42cf43751dd0ed10deaf54" alt="{\displaystyle \textstyle {\frac {0}{0}}}" aria-hidden="true" border="0" /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;in a&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Indeterminate form" href="https://en.wikipedia.org/wiki/Indeterminate_form#List_of_indeterminate_forms" target="_blank" rel="noopener"&gt;table of indeterminate forms&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The debate between Cauchy and Libri got rather heated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-05-20 15_48_38-Fake Tweet,Chat &amp;amp; Facebook Status Generator _ Prank Me Not.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29654i0D1D5B5693E4E153/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-05-20 15_48_38-Fake Tweet,Chat &amp;amp; Facebook Status Generator _ Prank Me Not.png" alt="2019-05-20 15_48_38-Fake Tweet,Chat &amp;amp; Facebook Status Generator _ Prank Me Not.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And as everyone knows, I never disagree with Augustin-Louis Cauchy.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 19:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560254#M156624</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-20T19:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: 0^0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560267#M156629</link>
      <description>&lt;P&gt;Wow, so Twitter has been going since 1831! You learn something new every day&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 19:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560267#M156629</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-05-20T19:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: 0^0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560270#M156630</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183606"&gt;@oves&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If need be, you could define your own power function and use this in place of the exponential operator:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=work.funcs.test;
function pow(x, y);
  z=if x=y=0 then 1 else x**y;
  return(z);
endsub;
run;

options cmplib=work.funcs;

data test;
input a b;
c=pow(a,b);
cards;
2 3
0 0
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;: Hilarious! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This beats "&lt;FONT face="courier new,courier"&gt;y=(.1+.2-.3)**0;&lt;/FONT&gt;" as a fun answer to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183606"&gt;@oves&lt;/a&gt;'s question.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 20:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-0/m-p/560270#M156630</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-05-20T20:03:33Z</dc:date>
    </item>
  </channel>
</rss>

