<?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: compute numerical derivative in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154300#M30269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza. Now I want to follow the book Numerical Recipe in C to reduce the round off error. In its 3rd edition page 230, it says one needs to use the trick temp=x+h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; donothing(temp)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h=temp-x &lt;/P&gt;&lt;P&gt;to achieve the exact h. Any idea how to apply this trick in SAS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 12:52:28 GMT</pubDate>
    <dc:creator>Hanyu</dc:creator>
    <dc:date>2014-03-25T12:52:28Z</dc:date>
    <item>
      <title>compute numerical derivative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154298#M30267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem of computing numerical derivative using finite difference method. Obviously, I have to concern two problems, the rounding error and truncation error. The truncation error can be dealt by extrapolation. But the rounding error problem has something to do with machine accuracy and finding the proper scale of perturbation. This probably related to the fundamental of SAS, ie. how the number is stored in SAS and how SAS executes C language. I have already read numerical recipes in C. But I don't know how to apply the method to SAS. Any comment is truly appreciated. Thank you in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 14:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154298#M30267</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-03-24T14:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: compute numerical derivative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154299#M30268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Borrowing a response from &lt;A __default_attr="8872" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is an Intel issue not microsoft or SAS or any other program. There is even an IEE-standard.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://en.wikipedia.org/wiki/IEEE_floating_point"&gt;IEEE floating point - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;floating point double-precision is what Intel is using as standard at the moment. Precision is 15 digits.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#numvar.htm"&gt;SAS(R) 9.2 Companion for Windows, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome in the digital age and the caveats.&lt;/P&gt;&lt;P&gt; "There are 10 types of people in the world; those that understand BINARY and those that do not"..&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="198798" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 15:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154299#M30268</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-24T15:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: compute numerical derivative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154300#M30269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza. Now I want to follow the book Numerical Recipe in C to reduce the round off error. In its 3rd edition page 230, it says one needs to use the trick temp=x+h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; donothing(temp)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h=temp-x &lt;/P&gt;&lt;P&gt;to achieve the exact h. Any idea how to apply this trick in SAS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154300#M30269</guid>
      <dc:creator>Hanyu</dc:creator>
      <dc:date>2014-03-25T12:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: compute numerical derivative</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154301#M30270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To understand more about floating-point arithmetic, see the paper &lt;A href="http://www.validlab.com/goldberg/paper.pdf"&gt;"What Every Computer Scientist Should Know About Floating-Point Arithmetic."&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing numerical analysis in SAS, you should look at the SAS/IML language. The SAS/IML language supports numerical integration, differentiation, optimization, matrix computations, and other operations covered in &lt;EM&gt;Numerical Recipes.&lt;/EM&gt; There is even a separate &lt;A _jive_internal="true" href="https://communities.sas.com/community/support-communities/sas_iml_and_sas_iml_studio"&gt;SAS/IML Support Community &lt;/A&gt;for questions about numerical operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are a few blog posts about numerical differentiation (also call finite differencing):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://blogs.sas.com/content/iml/2012/05/02/the-dif-function/" title="http://blogs.sas.com/content/iml/2012/05/02/the-dif-function/"&gt; The DIF function: Compute lagged differences and finite differences - The DO Loop&lt;/A&gt; &lt;/LI&gt;&lt;LI&gt;The NLPFDD subroutine in SAS/IML performs forward or central finite differencing. See &lt;A href="http://blogs.sas.com/content/iml/2011/10/14/hints-for-derivatives/" title="http://blogs.sas.com/content/iml/2011/10/14/hints-for-derivatives/"&gt; Optimizing? Two hints for specifying derivatives - The DO Loop&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 15:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compute-numerical-derivative/m-p/154301#M30270</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-04-03T15:34:09Z</dc:date>
    </item>
  </channel>
</rss>

