<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.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/"><channel><title>How to find the power of a number (x to the power of y) without using any Appian function like power() ?</title><link>https://community.appian.com/discussions/f/general/18391/how-to-find-the-power-of-a-number-x-to-the-power-of-y-without-using-any-appian-function-like-power</link><description>How to find the power of a number (x to the power of y) without using any Appian function like power() ?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to find the power of a number (x to the power of y) without using any Appian function like power() ?</title><link>https://community.appian.com/thread/84957?ContentTypeID=1</link><pubDate>Wed, 25 Aug 2021 06:31:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:53cbc54f-c73c-4f00-89f7-da987d179009</guid><dc:creator>Bejjenki_Rajender</dc:creator><description>&lt;p&gt;it is work&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!power:3,&lt;br /&gt; local!base:4,&lt;br /&gt;local!result:repeat(local!power,local!base),&lt;br /&gt;product(local!result)&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the power of a number (x to the power of y) without using any Appian function like power() ?</title><link>https://community.appian.com/thread/72412?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 10:41:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:038554da-dfee-4f42-831c-787894cbe413</guid><dc:creator>Mudit</dc:creator><description>&lt;p&gt;on top of what is already replied.&amp;nbsp;&amp;nbsp;you can use caret operator (^) as well . Example :- 2^3 returns 8.&amp;nbsp; I guess its a interview question as power() is good enough for all scenarios.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the power of a number (x to the power of y) without using any Appian function like power() ?</title><link>https://community.appian.com/thread/72411?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 09:54:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a22520f-bf02-44a1-b938-812371b3377c</guid><dc:creator>Bhushan Chavan</dc:creator><description>&lt;p&gt;I do not understand why you need to create a custom function however, here is the code below which will help you in achieving the required result.&lt;/p&gt;
&lt;p&gt;you can substitute product function with an sub rule to calculate that was well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!number: 2,
  local!power: 5,
  local!array: repeat(
    local!power,
    local!number
  ),
  reduce(
    fn!product,
    1,
    local!array
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find the power of a number (x to the power of y) without using any Appian function like power() ?</title><link>https://community.appian.com/thread/72410?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 09:44:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00d991a9-6b9c-4856-9994-d9e5e64898d4</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;First question: since there is a power() function why do you want a different method?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>