<?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>How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98923/how-to-include-trigonometric-functions-into-direction-finding-connectionless-rx-code</link><description>Hello, 
 I have been trying to implement atanh function into the code but I am getting dependency errors because &amp;quot;spu_intrinsics.h&amp;quot; is not found. Is there any other way to incorporate tanh function into the code to further calculate the phase difference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 May 2023 06:43:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98923/how-to-include-trigonometric-functions-into-direction-finding-connectionless-rx-code" /><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/423664?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 06:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b76074-4bf5-4a28-81b2-8bb3eda39265</guid><dc:creator>Rishitha</dc:creator><description>&lt;p&gt;Okay got it. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/422256?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 10:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d7b12d3-97f2-4ab2-b1c9-853681545b21</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;So it does build now, but it doesn&amp;#39;t get executed?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/support-private/support/303103#permalink=832060"&gt;I see here&lt;/a&gt; that it might be that you&amp;#39;ll have to add these files in yourself if they still do not get included.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/422227?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 09:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:251bfa6e-cea9-4f18-a1ef-6abfea35564c</guid><dc:creator>Rishitha</dc:creator><description>&lt;p&gt;Yes, I have included CONFIG_NEWLIB_LIBC=y in configuration file already but atan2() is not getting executed and math.h is present in the directory you mentioned. What should I do for atan2() to get executed properly.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1682423832012v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/422190?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 07:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ea7b37-b658-47c8-85dd-73aeed65a239</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Did you add&amp;nbsp;CONFIG_NEWLIB_LIBC=y in your configuration file?&lt;/p&gt;
[quote user="Rishitha"]Can I know where the math.h file need to be present, I mean in which module it has to be present?[/quote]
&lt;p&gt;It should already be present in&amp;nbsp;C:\Users\[name]\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\arm-zephyr-eabi\sys-include. Do you see it there?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/422163?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 05:10:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feba7a77-bd2e-47b1-b863-8151743d2ad5</guid><dc:creator>Rishitha</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The hello world sample is also not working. Can I know where the math.h file need to be present, I mean in which module it has to be present?&lt;/p&gt;
&lt;p&gt;Thankyou.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/cs1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:62px;max-width:862px;" alt=" " height="62" src="https://devzone.nordicsemi.com/resized-image/__size/1724x124/__key/communityserver-discussions-components-files/4/cs2.png" width="862" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/cs.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/422026?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 11:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d13ce4-7636-4d82-bb9a-0224bbffcb4f</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Try math.h, not the one in zephyr/blueooth/.&lt;/p&gt;
&lt;p&gt;Does this modified hello world sample work for you?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2012-2014 Wind River Systems, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/logging/log.h&amp;gt;
#include &amp;lt;math.h&amp;gt;

LOG_MODULE_REGISTER(hello_world,LOG_LEVEL_DBG);
void main(void)
{
	printk(&amp;quot;Hello World! %s\n&amp;quot;, CONFIG_BOARD);
	printk(&amp;quot;And hello mr. atan: %f\n&amp;quot;,atan2(3,2));
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/421924?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 05:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e6e287b-18cb-4009-9b99-e2f7ea63da1d</guid><dc:creator>Rishitha</dc:creator><description>&lt;p&gt;Hello, I am still facing the same issue even though I have included math.h.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8357.MicrosoftTeams_2D00_image-_2800_2_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2475.MicrosoftTeams_2D00_image-_2800_1_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/421642?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 07:17:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0b71c18-6afa-4d45-a2b7-50e19402fe97</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;&lt;a href="https://github.com/bminor/newlib/blob/master/newlib/libc/include/math.h"&gt;You can see the functions you have available to you here. &lt;/a&gt;Try atan2().&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/421622?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 05:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afebc83c-595c-4f3e-86f1-e94049a83263</guid><dc:creator>Rishitha</dc:creator><description>&lt;p&gt;Thankyou that has helped in resolving the error.&amp;nbsp;However, atan() function is not recognised and therefore I am unable to display the angle.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:153px;max-width:453px;" alt=" " height="153" src="https://devzone.nordicsemi.com/resized-image/__size/906x306/__key/communityserver-discussions-components-files/4/4111.MicrosoftTeams_2D00_image.png" width="453" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include trigonometric functions into direction finding connectionless rx code?</title><link>https://devzone.nordicsemi.com/thread/421484?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 12:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed621b81-d07e-4db8-903f-9190567832ec</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you try adding the header&amp;nbsp;#include &amp;lt;math.h&amp;gt;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and adding the config&amp;nbsp;CONFIG_NEWLIB_LIBC=y to your configuration file?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>