<?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: Is there a way to call Math functions like Math.hypot() in a service? in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Is-there-a-way-to-call-Math-functions-like-Math-hypot-in-a/m-p/604144#M35372</link>
    <description>Well, that would be the last option. Currently, I am sort of doing the same by defining an utility thing with reusable services. I would like to take advantage of efficient JavaScript algorithms that are predefined if there is a way to do that.</description>
    <pubDate>Mon, 01 Apr 2019 14:38:04 GMT</pubDate>
    <dc:creator>SajidPatel</dc:creator>
    <dc:date>2019-04-01T14:38:04Z</dc:date>
    <item>
      <title>Is there a way to call Math functions like Math.hypot() in a service?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Is-there-a-way-to-call-Math-functions-like-Math-hypot-in-a/m-p/604026#M35338</link>
      <description>&lt;P&gt;To pre-process for analytics, I need to calculate some values. It would help immensely if I could utilize Math functions like hypot(),&amp;nbsp; etc. Does anyone know, how I can make use of these functions in a service?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did notice that some functions do work like&amp;nbsp;sqrt() for example, but not all, I am specifically interested in hypot at this time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 02:50:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Is-there-a-way-to-call-Math-functions-like-Math-hypot-in-a/m-p/604026#M35338</guid>
      <dc:creator>SajidPatel</dc:creator>
      <dc:date>2019-04-01T02:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to call Math functions like Math.hypot() in a service?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Is-there-a-way-to-call-Math-functions-like-Math-hypot-in-a/m-p/604141#M35371</link>
      <description>&lt;P&gt;The easiest thing for you to do might be to write your own Math resource extension.&amp;nbsp; You would create a new "Resource" extension and define all the functions you need. Then you can use native Java to calculate the result and return it to TWX.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 14:30:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Is-there-a-way-to-call-Math-functions-like-Math-hypot-in-a/m-p/604141#M35371</guid>
      <dc:creator>wposner-2</dc:creator>
      <dc:date>2019-04-01T14:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to call Math functions like Math.hypot() in a service?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Is-there-a-way-to-call-Math-functions-like-Math-hypot-in-a/m-p/604144#M35372</link>
      <description>Well, that would be the last option. Currently, I am sort of doing the same by defining an utility thing with reusable services. I would like to take advantage of efficient JavaScript algorithms that are predefined if there is a way to do that.</description>
      <pubDate>Mon, 01 Apr 2019 14:38:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Is-there-a-way-to-call-Math-functions-like-Math-hypot-in-a/m-p/604144#M35372</guid>
      <dc:creator>SajidPatel</dc:creator>
      <dc:date>2019-04-01T14:38:04Z</dc:date>
    </item>
  </channel>
</rss>

