<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265301</link>
    <title>MATLAB Central Newsreader - gammainc - check in excel?</title>
    <description>Feed for thread: gammainc - check in excel?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 08 Nov 2009 17:54:01 -0500</pubDate>
      <title>gammainc - check in excel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265301#693044</link>
      <author>Erik Gadzinski</author>
      <description>This is not a Matlab question exactly, but does anybody know how I would check the code below in excel?  I don't think excel can do an incomplete gamma. I was given this piece of code from somebody and I want to check it outside matlab because it is giving me values I didn't expect.&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
gammainc((M+1)^N*(-log(q)),1/N,'upper')</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 22:53:17 -0500</pubDate>
      <title>Re: gammainc - check in excel?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265301#693083</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Erik Gadzinski&quot; &amp;lt;ergadz@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:hd70jp$1g2$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; This is not a Matlab question exactly, but does anybody know how I would &lt;br&gt;
&amp;gt; check the code below in excel?  I don't think excel can do an incomplete &lt;br&gt;
&amp;gt; gamma. I was given this piece of code from somebody and I want to check it &lt;br&gt;
&amp;gt; outside matlab because it is giving me values I didn't expect.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; gammainc((M+1)^N*(-log(q)),1/N,'upper')&lt;br&gt;
&lt;br&gt;
For which values of M, N, and q do you receive values you didn't expect?&lt;br&gt;
&lt;br&gt;
Anyway, to check this you can use the integral form of GAMMAINC with the &lt;br&gt;
QUADGK integration function.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/gamma.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/gamma.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Or you could check if the values of the input arguments for which you're &lt;br&gt;
evaluating the incomplete gamma function are present in the table of values &lt;br&gt;
for the function in Abramowitz &amp; Stegun (see the second Reference on the &lt;br&gt;
page I linked above.)&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
comp.soft-sys.matlab (CSSM) FAQ: &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt; </description>
    </item>
  </channel>
</rss>

