<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Need help with square root function (sqrt) on MCF52211</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Need-help-with-square-root-function-sqrt-on-MCF52211/m-p/154423#M4296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;It would probably be easier to include the source code of the sqrt() function into your program and compile it along with other sources. I suggest you use Cephes Math Library:&lt;BR /&gt;&lt;A href="http://www.netlib.org/cephes/" target="test_blank"&gt;http://www.netlib.org/cephes/&lt;/A&gt;&lt;BR /&gt;Each function in this library is contained in a single source file. You can simply drop it into your sources folder and compile it with your project. Some minor modifications might be necessary.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 May 2008 19:17:54 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2008-05-11T19:17:54Z</dc:date>
    <item>
      <title>Need help with square root function (sqrt) on MCF52211</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Need-help-with-square-root-function-sqrt-on-MCF52211/m-p/154422#M4295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having problems getting the &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;STRONG&gt;sqrt&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; (or &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;sqrtf&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;) function to work properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My targer processor is MCF52211.&amp;nbsp; CodeWarrior version 5.7.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run using &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;STRONG&gt;sqrt&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; the result is always 20.0 and and the exception handler is entered, resulting in the error: "Access Error: Error on operand write".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run using &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;sqrtf&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, the result is a very large, incorrect number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried using different msl libraries.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a specific library I should be using or a setting somewhere that I am missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 23:24:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Need-help-with-square-root-function-sqrt-on-MCF52211/m-p/154422#M4295</guid>
      <dc:creator>jayteemo</dc:creator>
      <dc:date>2008-05-08T23:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with square root function (sqrt) on MCF52211</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Need-help-with-square-root-function-sqrt-on-MCF52211/m-p/154423#M4296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;It would probably be easier to include the source code of the sqrt() function into your program and compile it along with other sources. I suggest you use Cephes Math Library:&lt;BR /&gt;&lt;A href="http://www.netlib.org/cephes/" target="test_blank"&gt;http://www.netlib.org/cephes/&lt;/A&gt;&lt;BR /&gt;Each function in this library is contained in a single source file. You can simply drop it into your sources folder and compile it with your project. Some minor modifications might be necessary.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 19:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Need-help-with-square-root-function-sqrt-on-MCF52211/m-p/154423#M4296</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2008-05-11T19:17:54Z</dc:date>
    </item>
  </channel>
</rss>

