<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Functions</title><link>https://sourceforge.net/p/algebrain/wiki/Functions/</link><description>Recent changes to Functions</description><atom:link href="https://sourceforge.net/p/algebrain/wiki/Functions/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 05 Dec 2013 15:35:58 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/algebrain/wiki/Functions/feed" rel="self" type="application/rss+xml"/><item><title>Functions modified by Chris DeGreef</title><link>https://sourceforge.net/p/algebrain/wiki/Functions/</link><description>&lt;div class="markdown_content"&gt;&lt;h2&gt;Absolute Value&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;abs(-123.45)&lt;/pre&gt;
&lt;p&gt;Returns the absolute value of a double value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned. Special cases:&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;li&gt;If the argument is positive zero or negative zero, the result is positive zero.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;If the argument is infinite, the result is positive infinity.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;If the argument is NaN, the result is NaN.&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;h2&gt;Arc Cosine&lt;/h2&gt;&lt;br /&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;acos(0.25)&lt;/pre&gt;&lt;br /&gt;
Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi. Special case: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the argument is NaN or its absolute value is greater than 1, then the result is NaN.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Arc CoTangent&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;acotan(0.25)&lt;/pre&gt;
&lt;p&gt;PI / 2 - ArcTangent&lt;/p&gt;
&lt;h2&gt;Alpha&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;alpha(0.25)&lt;/pre&gt;
&lt;p&gt;Formats a number into a alphanumeric string.&lt;/p&gt;
&lt;h2&gt;Arc Sine&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;asin(0.25)&lt;/pre&gt;
&lt;p&gt;Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2. Special cases: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the argument is NaN or its absolute value is greater than 1, then the result is NaN. &lt;/li&gt;
&lt;li&gt;If the argument is zero, then the result is a zero with the same sign as the argument.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Arc Tangent&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;atan(0.25)&lt;/pre&gt;
&lt;p&gt;Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2. Special cases: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the argument is NaN, then the result is NaN. &lt;/li&gt;
&lt;li&gt;If the argument is zero, then the result is a zero with the same sign as the argument.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Banded Rate&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;BandedRate("myTable", "09/07/2011", 125,256.36)&lt;/pre&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="cm"&gt;/*&lt;/span&gt;
&lt;span class="cm"&gt; * Only the last key in the table is used for banded &lt;/span&gt;
&lt;span class="cm"&gt; */&lt;/span&gt;
&lt;span class="n"&gt;Hashtable&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;Double&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Double&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;rateTable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; 
    &lt;span class="n"&gt;resolveRate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="n"&gt;tableName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
      &lt;span class="n"&gt;ratesgetEqu&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;getBaseDate&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; 
      &lt;span class="n"&gt;baseAmount&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;doubleValue&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Flat Rate&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;Rate("myTable", "09/07/2011")&lt;/pre&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; 
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;resolveRate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="n"&gt;tableName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
      &lt;span class="n"&gt;getEqu&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;getBaseDate&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; 
      &lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; 
      &lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; 
      &lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; 
      &lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; 
      &lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;If&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;if(myVar='C', cos(myAngle), sin(myAngle))&lt;/pre&gt;
&lt;p&gt;Returns the first value if the condition is true, otherwise it returns the second value.&lt;/p&gt;
&lt;h2&gt;Maximum&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;max(1, 2, 3, 4, 5)&lt;/pre&gt;
&lt;p&gt;Each of the multiple items are compared with each other.&lt;/p&gt;
&lt;p&gt;Returns the greater of two double values. That is, the result is the argument closer to positive infinity. If the arguments have the same value, the result is that same value. If either value is NaN, then the result is NaN. Unlike the numerical comparison operators, this method considers negative zero to be strictly smaller than positive zero. If one argument is positive zero and the other negative zero, the result is positive zero.&lt;/p&gt;
&lt;h2&gt;Round&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;round(1.49)&lt;/pre&gt;
&lt;p&gt;Returns the closest long to the argument. The result is rounded to an integer by adding 1/2, taking the floor of the result, and casting the result to type long. In other words, the result is equal to the value of the expression: &lt;/p&gt;
&lt;p&gt;(long)Math.floor(a + 0.5d)&lt;br /&gt;
Special cases: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the argument is NaN, the result is 0. &lt;/li&gt;
&lt;li&gt;If the argument is negative infinity or any value less than or equal to the value of Long.MIN_VALUE, the result is equal to the value of Long.MIN_VALUE. &lt;/li&gt;
&lt;li&gt;If the argument is positive infinity or any value greater than or equal to the value of Long.MAX_VALUE, the result is equal to the value of Long.MAX_VALUE.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Sine&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;sin(75)&lt;/pre&gt;
&lt;p&gt;Returns the trigonometric sine of an angle. Special cases: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the argument is NaN or an infinity, then the result is NaN. &lt;/li&gt;
&lt;li&gt;If the argument is zero, then the result is a zero with the same sign as the argument.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Tangent&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;tan(66)&lt;/pre&gt;
&lt;p&gt;Returns the trigonometric tangent of an angle. Special cases: &lt;br /&gt;
&lt;ul&gt;&lt;/ul&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;If the argument is NaN or an infinity, then the result is NaN. &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;If the argument is zero, then the result is a zero with the same sign as the argument.&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;h2&gt;Tiered Rate&lt;/h2&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;TieredRate("myTable", "09/07/2011", 125,256.36)&lt;/pre&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="cm"&gt;/*&lt;/span&gt;
&lt;span class="cm"&gt; * Only the last key in the table is used for tiered&lt;/span&gt;
&lt;span class="cm"&gt; */&lt;/span&gt;
&lt;span class="n"&gt;Hashtable&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;Double&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Double&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;rateTable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; 
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;resolveRate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="n"&gt;tableName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
      &lt;span class="n"&gt;getEqu&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="n"&gt;getBaseDate&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; 
      &lt;span class="n"&gt;baseAmount&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;doubleValue&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris DeGreef</dc:creator><pubDate>Thu, 05 Dec 2013 15:35:58 -0000</pubDate><guid>https://sourceforge.net646fca56171e3d449ca206087c53d89efc81015a</guid></item></channel></rss>