<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sdk 1.6.0 Math Function.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77377/sdk-1-6-0-math-function</link><description>Hello, 
 how add math function to a segger project. 
 I have included 
 #include &amp;lt;math.h&amp;gt; 
 void myFuncion() 
 { 
 . . . 
 rx=(int)((float)(*x-cx)* cos(a) -(float)(*y-cy)*sin(a)+cx); 
 . . . 
 } 
 but i get error 
 undefined reference to &amp;#39;cos&amp;#39;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Nov 2022 10:42:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77377/sdk-1-6-0-math-function" /><item><title>RE: Sdk 1.6.0 Math Function.</title><link>https://devzone.nordicsemi.com/thread/395285?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 10:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:209a72c3-b2f2-4a87-a527-a642820f18b4</guid><dc:creator>Buttar</dc:creator><description>&lt;p&gt;my sin function working by following above steps but I cannot use the inverse trignometry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sdk 1.6.0 Math Function.</title><link>https://devzone.nordicsemi.com/thread/319643?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 14:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61bbbf33-07ab-4c40-8f57-e5d0d6f8853e</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Perfect now compile and work.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Fausto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sdk 1.6.0 Math Function.</title><link>https://devzone.nordicsemi.com/thread/319628?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 14:18:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f803684-e176-42cd-8cd0-9caf5828c7e3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The problem is probably that you are using Zephyr&amp;#39;s minimal libc implementation, which is missing a lot of features normally present in libc.&lt;/p&gt;
&lt;p&gt;You can change to using the newlib implementation by setting CONFIG_NEWLIB_LIBC=y in your prj.conf file. (Remember that if you are using SES, changes in prj.conf doesn&amp;#39;t take effect until you re-open the project or use &amp;#39;Project -&amp;gt; Run CMake...&amp;#39;)&lt;/p&gt;
&lt;p&gt;Note that newlib can also be configured to exclude a lot of features (to save space). This means that you might also have to configure your project to &lt;strong&gt;not&lt;/strong&gt; use newlib-nano, but the full newlib implementation. You can do that by setting CONFIG_NEWLIB_LIBC_NANO=n.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>