-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04adf96
commit a35a41b
Showing
44 changed files
with
2,189 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<html> | ||
<head> | ||
<title>HyperTalk 2.2 Functions - abs</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="generator" content="XIONDoc 1.3"> | ||
<meta name="keywords" content="XION, OpenXION, XIONDoc, XIONDocs, XION docs, OpenXION docs, XION documentation, OpenXION documentation, XION manual, OpenXION manual, HyperTalk, HyperTalk clone, xTalk, HyperTalk, HyperTalk 2.2, function, functions, abs"> | ||
<meta name="description" content="This page describes the abs function."> | ||
<link rel="stylesheet" type="text/css" href="../xiondoc.css"> | ||
</head> | ||
<body> | ||
<h1>Functions</h1> | ||
<h2>abs</h2> | ||
<h3>Supported By</h3> | ||
<ul class="block unorderedlist indent0 border0 nobullet"> | ||
<li>XION Scripting Language Standard (1.0)</li> | ||
<li>OpenXION (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>OpenXION Standard Module (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>HyperTalk (2.2)</li> | ||
</ul> | ||
<h3>Syntax</h3> | ||
<p class="block syntax indent0"><span class="optional"><span class="metasymbol">[</span><code class="keyword">the</code><span class="metasymbol">]</span></span> <code class="keyword">abs</code> <code class="keyword">of</code> <em class="metavariable">factor</em></p> | ||
<p class="block syntax indent0"><code class="keyword">abs</code> <code class="keyword">(</code> <em class="metavariable">expression</em> <code class="keyword">)</code></p> | ||
<p class="block paragraph indent0"> <em class="metavariable">Factor</em> and <em class="metavariable">expression</em> yield <code><a href="../dt/integer.html">integer</a></code>s, <code><a href="../dt/number.html">number</a></code>s, or <code>complex</code>es. </p> | ||
<h3>Example</h3> | ||
<pre class="block script indent0"> | ||
put abs(a-b) into theDifference | ||
</pre> | ||
<h3>Description</h3> | ||
<p class="block paragraph indent0"> The <code>abs</code> function returns the absolute value of its argument. </p> | ||
<p class="block paragraph indent0"> If the argument is an <code><a href="../dt/integer.html">integer</a></code>, an <code><a href="../dt/integer.html">integer</a></code> is returned. </p> | ||
<p class="block paragraph indent0"> If the argument is a <code><a href="../dt/number.html">number</a></code>, a <code><a href="../dt/number.html">number</a></code> is returned. </p> | ||
<p class="block paragraph indent0"> If the argument is a <code>complex</code>, a <code>complex</code> is returned. The returned <code>complex</code> will have a real part of the distance of the passed in <code>complex</code> from the origin, and an imaginary part of zero. </p> | ||
<h3>Note</h3> | ||
<p class="block paragraph indent0"> This function is similar to the <code>hypot</code> and <code>radius</code> functions, but takes one numeric argument rather than a list. </p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<html> | ||
<head> | ||
<title>HyperTalk 2.2 Functions - annuity</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="generator" content="XIONDoc 1.3"> | ||
<meta name="keywords" content="XION, OpenXION, XIONDoc, XIONDocs, XION docs, OpenXION docs, XION documentation, OpenXION documentation, XION manual, OpenXION manual, HyperTalk, HyperTalk clone, xTalk, HyperTalk, HyperTalk 2.2, function, functions, annuity"> | ||
<meta name="description" content="This page describes the annuity function."> | ||
<link rel="stylesheet" type="text/css" href="../xiondoc.css"> | ||
</head> | ||
<body> | ||
<h1>Functions</h1> | ||
<h2>annuity</h2> | ||
<h3>Supported By</h3> | ||
<ul class="block unorderedlist indent0 border0 nobullet"> | ||
<li>XION Scripting Language Standard (1.0)</li> | ||
<li>OpenXION (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>OpenXION Standard Module (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>HyperTalk (2.2)</li> | ||
</ul> | ||
<h3>Syntax</h3> | ||
<p class="block syntax indent0"><span class="optional"><span class="metasymbol">[</span><code class="keyword">the</code><span class="metasymbol">]</span></span> <code class="keyword">annuity</code> <code class="keyword">of</code> <code class="keyword">(</code> <em class="metavariable">rate</em> <code class="keyword">,</code> <em class="metavariable">periods</em> <code class="keyword">)</code></p> | ||
<p class="block syntax indent0"><code class="keyword">annuity</code> <code class="keyword">(</code> <em class="metavariable">rate</em> <code class="keyword">,</code> <em class="metavariable">periods</em> <code class="keyword">)</code></p> | ||
<p class="block paragraph indent0"> <em class="metavariable">Rate</em> and <em class="metavariable">periods</em> yield <code><a href="../dt/integer.html">integer</a></code>s, <code><a href="../dt/number.html">number</a></code>s, or <code>complex</code>es. </p> | ||
<h3>Examples</h3> | ||
<pre class="block script indent0"> | ||
put myPayment*annuity(.015,12) into presentValue | ||
</pre> | ||
<pre class="block script indent0"> | ||
put myPayment*annuity(.015,12)*compound(.015,12) ¬ | ||
into futureValue | ||
</pre> | ||
<h3>Description</h3> | ||
<p class="block paragraph indent0"> The <code>annuity</code> function is used to calculate the present or future value of an ordinary annuity. <em class="metavariable">Rate</em> is the interest rate per period, and <em class="metavariable">periods</em> is the number of periods over which the value is calculated. </p> | ||
<p class="block paragraph indent0"> The formula for the <code>annuity</code> function is: </p> | ||
<p class="block paragraph indent0"> <code><code>annuity</code>(<em class="metavariable">rate</em>, <em class="metavariable">periods</em>) = (1-((1+<em class="metavariable">rate</em>)^(-<em class="metavariable">periods</em>)))/<em class="metavariable">rate</em></code> </p> | ||
<p class="block paragraph indent0"> The <code>annuity</code> function is faster and more accurate than using the above formula. </p> | ||
<h3>Note</h3> | ||
<p class="block paragraph indent0"> You can use <code>complex</code> arguments to this function, but what this means exactly is up to the accountants and economists to figure out, not me. </p> | ||
<h3>See Also</h3> | ||
<p class="block paragraph indent0"><code><a href="../fn/compound.html">compound</a></code></p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<html> | ||
<head> | ||
<title>HyperTalk 2.2 Functions - atan</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="generator" content="XIONDoc 1.3"> | ||
<meta name="keywords" content="XION, OpenXION, XIONDoc, XIONDocs, XION docs, OpenXION docs, XION documentation, OpenXION documentation, XION manual, OpenXION manual, HyperTalk, HyperTalk clone, xTalk, HyperTalk, HyperTalk 2.2, function, functions, atan"> | ||
<meta name="description" content="This page describes the atan function."> | ||
<link rel="stylesheet" type="text/css" href="../xiondoc.css"> | ||
</head> | ||
<body> | ||
<h1>Functions</h1> | ||
<h2>atan</h2> | ||
<h3>Supported By</h3> | ||
<ul class="block unorderedlist indent0 border0 nobullet"> | ||
<li>XION Scripting Language Standard (1.0)</li> | ||
<li>OpenXION (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>OpenXION Standard Module (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>HyperTalk (2.2)</li> | ||
</ul> | ||
<h3>Syntax</h3> | ||
<p class="block syntax indent0"><span class="optional"><span class="metasymbol">[</span><code class="keyword">the</code><span class="metasymbol">]</span></span> <code class="keyword">atan</code> <code class="keyword">of</code> <em class="metavariable">factor</em></p> | ||
<p class="block syntax indent0"><code class="keyword">atan</code> <code class="keyword">(</code> <em class="metavariable">expression</em> <code class="keyword">)</code></p> | ||
<p class="block paragraph indent0"> <em class="metavariable">Factor</em> and <em class="metavariable">expression</em> yield <code><a href="../dt/integer.html">integer</a></code>s, <code><a href="../dt/number.html">number</a></code>s, or <code>complex</code>es. </p> | ||
<h3>Example</h3> | ||
<pre class="block script indent0"> | ||
put atan(theTangent) into theAngle | ||
</pre> | ||
<h3>Description</h3> | ||
<p class="block paragraph indent0"> The <code>atan</code> function returns the inverse tangent of its argument. </p> | ||
<p class="block paragraph indent0"> If the argument is an <code><a href="../dt/integer.html">integer</a></code> or a <code><a href="../dt/number.html">number</a></code>, a <code><a href="../dt/number.html">number</a></code> is returned. </p> | ||
<p class="block paragraph indent0"> If the argument is a <code>complex</code>, a <code>complex</code> is returned. </p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<html> | ||
<head> | ||
<title>HyperTalk 2.2 Functions - average</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="generator" content="XIONDoc 1.3"> | ||
<meta name="keywords" content="XION, OpenXION, XIONDoc, XIONDocs, XION docs, OpenXION docs, XION documentation, OpenXION documentation, XION manual, OpenXION manual, HyperTalk, HyperTalk clone, xTalk, HyperTalk, HyperTalk 2.2, function, functions, average"> | ||
<meta name="description" content="This page describes the average function."> | ||
<link rel="stylesheet" type="text/css" href="../xiondoc.css"> | ||
</head> | ||
<body> | ||
<h1>Functions</h1> | ||
<h2>average</h2> | ||
<h3>Supported By</h3> | ||
<ul class="block unorderedlist indent0 border0 nobullet"> | ||
<li>XION Scripting Language Standard (1.0)</li> | ||
<li>OpenXION (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>OpenXION Standard Module (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>HyperTalk (2.2)</li> | ||
</ul> | ||
<h3>Syntax</h3> | ||
<p class="block syntax indent0"><span class="optional"><span class="metasymbol">[</span><code class="keyword">the</code><span class="metasymbol">]</span></span> <code class="keyword">average</code> <code class="keyword">of</code> <em class="metavariable">factor</em></p> | ||
<p class="block syntax indent0"><code class="keyword">average</code> <code class="keyword">(</code> <em class="metavariable">expression</em> <code class="keyword">)</code></p> | ||
<p class="block paragraph indent0"> <em class="metavariable">Factor</em> and <em class="metavariable">expression</em> yield <code>list</code>s of <code>integers</code>, <code>numbers</code>, or <code>complexes</code>. </p> | ||
<h3>Example</h3> | ||
<pre class="block script indent0"> | ||
put average(1,3,4) into bill | ||
</pre> | ||
<h3>Description</h3> | ||
<p class="block paragraph indent0"> The <code>average</code> function returns the arithmetic mean, or average, of the numeric values passed to it. This is equal to the sum of the passed values divided by the number of values. </p> | ||
<p class="block paragraph indent0"> If all the values are <code><a href="../dt/integer.html">integer</a></code>s or <code><a href="../dt/number.html">number</a></code>s, a <code><a href="../dt/number.html">number</a></code> is returned. If any value is a <code>complex</code>, a <code>complex</code> is returned. </p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<html> | ||
<head> | ||
<title>HyperTalk 2.2 Functions - charToNum</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="generator" content="XIONDoc 1.3"> | ||
<meta name="keywords" content="XION, OpenXION, XIONDoc, XIONDocs, XION docs, OpenXION docs, XION documentation, OpenXION documentation, XION manual, OpenXION manual, HyperTalk, HyperTalk clone, xTalk, HyperTalk, HyperTalk 2.2, function, functions, charToNum"> | ||
<meta name="description" content="This page describes the charToNum function."> | ||
<link rel="stylesheet" type="text/css" href="../xiondoc.css"> | ||
</head> | ||
<body> | ||
<h1>Functions</h1> | ||
<h2>charToNum</h2> | ||
<h3>Supported By</h3> | ||
<ul class="block unorderedlist indent0 border0 nobullet"> | ||
<li>XION Scripting Language Standard (1.0)</li> | ||
<li>OpenXION (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>OpenXION Standard Module (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>HyperTalk (2.2)</li> | ||
</ul> | ||
<h3>Syntax</h3> | ||
<p class="block syntax indent0"><span class="optional"><span class="metasymbol">[</span><code class="keyword">the</code><span class="metasymbol">]</span></span> <code class="keyword">charToNum</code> <code class="keyword">of</code> <em class="metavariable">factor</em></p> | ||
<p class="block syntax indent0"><code class="keyword">charToNum</code> <code class="keyword">(</code> <em class="metavariable">expression</em> <code class="keyword">)</code></p> | ||
<p class="block paragraph indent0"> <em class="metavariable">Factor</em> and <em class="metavariable">expression</em> yield a character. </p> | ||
<h3>Example</h3> | ||
<pre class="block script indent0"> | ||
put the charToNum of "a" into it -- yields 97 | ||
</pre> | ||
<h3>Description</h3> | ||
<p class="block paragraph indent0"> The <code>charToNum</code> function returns the equivalent value of the character passed to it in the text encoding specified by the <code>textEncoding</code> property. </p> | ||
<h3>Note</h3> | ||
<p class="block paragraph indent0"> If more than one character is passed, <code>charToNum</code> returns the value of the first character. </p> | ||
<h3>See Also</h3> | ||
<p class="block paragraph indent0"><code><a href="../fn/numtochar.html">numToChar</a></code></p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<html> | ||
<head> | ||
<title>HyperTalk 2.2 Functions - compound</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="generator" content="XIONDoc 1.3"> | ||
<meta name="keywords" content="XION, OpenXION, XIONDoc, XIONDocs, XION docs, OpenXION docs, XION documentation, OpenXION documentation, XION manual, OpenXION manual, HyperTalk, HyperTalk clone, xTalk, HyperTalk, HyperTalk 2.2, function, functions, compound"> | ||
<meta name="description" content="This page describes the compound function."> | ||
<link rel="stylesheet" type="text/css" href="../xiondoc.css"> | ||
</head> | ||
<body> | ||
<h1>Functions</h1> | ||
<h2>compound</h2> | ||
<h3>Supported By</h3> | ||
<ul class="block unorderedlist indent0 border0 nobullet"> | ||
<li>XION Scripting Language Standard (1.0)</li> | ||
<li>OpenXION (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>OpenXION Standard Module (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>HyperTalk (2.2)</li> | ||
</ul> | ||
<h3>Syntax</h3> | ||
<p class="block syntax indent0"><span class="optional"><span class="metasymbol">[</span><code class="keyword">the</code><span class="metasymbol">]</span></span> <code class="keyword">compound</code> <code class="keyword">of</code> <code class="keyword">(</code> <em class="metavariable">rate</em> <code class="keyword">,</code> <em class="metavariable">periods</em> <code class="keyword">)</code></p> | ||
<p class="block syntax indent0"><code class="keyword">compound</code> <code class="keyword">(</code> <em class="metavariable">rate</em> <code class="keyword">,</code> <em class="metavariable">periods</em> <code class="keyword">)</code></p> | ||
<p class="block paragraph indent0"> <em class="metavariable">Rate</em> and <em class="metavariable">periods</em> yield <code><a href="../dt/integer.html">integer</a></code>s, <code><a href="../dt/number.html">number</a></code>s, or <code>complex</code>es. </p> | ||
<h3>Examples</h3> | ||
<pre class="block script indent0"> | ||
put futureValue/compound(.10,12) into presentValue | ||
</pre> | ||
<pre class="block script indent0"> | ||
put presentValue*compound(.10,12) into futureValue | ||
</pre> | ||
<h3>Description</h3> | ||
<p class="block paragraph indent0"> The <code>compound</code> function is used to calculate the present or future value of a compound interest-bearing account. <em class="metavariable">Rate</em> is the interest rate per period, and <em class="metavariable">periods</em> is the number of periods over which the value is calculated. </p> | ||
<p class="block paragraph indent0"> The formula for the <code>compound</code> function is: </p> | ||
<p class="block paragraph indent0"> <code><code>compound</code>(<em class="metavariable">rate</em>, <em class="metavariable">periods</em>) = (1+<em class="metavariable">rate</em>)^<em class="metavariable">periods</em></code>. </p> | ||
<p class="block paragraph indent0"> The <code>compound</code> function is faster and more accurate than using the above formula. </p> | ||
<h3>Script</h3> | ||
<p class="block paragraph indent0"> The following example calculates the value in one year of an account earning 7.5 percent interest compounded monthly: </p> | ||
<pre class="block script indent0"> | ||
on calcInterest | ||
ask "Enter the beginning balance:" with empty | ||
put "Value in 1 year $" & it * compound(.075/12, 12) | ||
end calcInterest | ||
</pre> | ||
<h3>Note</h3> | ||
<p class="block paragraph indent0"> You can use <code>complex</code> arguments to this function, but what this means exactly is up to the accountants and economists to figure out, not me. </p> | ||
<h3>See Also</h3> | ||
<p class="block paragraph indent0"><code><a href="../fn/annuity.html">annuity</a></code></p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<html> | ||
<head> | ||
<title>HyperTalk 2.2 Functions - cos</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="generator" content="XIONDoc 1.3"> | ||
<meta name="keywords" content="XION, OpenXION, XIONDoc, XIONDocs, XION docs, OpenXION docs, XION documentation, OpenXION documentation, XION manual, OpenXION manual, HyperTalk, HyperTalk clone, xTalk, HyperTalk, HyperTalk 2.2, function, functions, cos"> | ||
<meta name="description" content="This page describes the cos function."> | ||
<link rel="stylesheet" type="text/css" href="../xiondoc.css"> | ||
</head> | ||
<body> | ||
<h1>Functions</h1> | ||
<h2>cos</h2> | ||
<h3>Supported By</h3> | ||
<ul class="block unorderedlist indent0 border0 nobullet"> | ||
<li>XION Scripting Language Standard (1.0)</li> | ||
<li>OpenXION (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>OpenXION Standard Module (1.0, 1.1, 1.2, 1.3, 1.4)</li> | ||
<li>HyperTalk (2.2)</li> | ||
</ul> | ||
<h3>Syntax</h3> | ||
<p class="block syntax indent0"><span class="optional"><span class="metasymbol">[</span><code class="keyword">the</code><span class="metasymbol">]</span></span> <code class="keyword">cos</code> <code class="keyword">of</code> <em class="metavariable">factor</em></p> | ||
<p class="block syntax indent0"><code class="keyword">cos</code> <code class="keyword">(</code> <em class="metavariable">expression</em> <code class="keyword">)</code></p> | ||
<p class="block paragraph indent0"> <em class="metavariable">Factor</em> and <em class="metavariable">expression</em> yield <code><a href="../dt/integer.html">integer</a></code>s, <code><a href="../dt/number.html">number</a></code>s, or <code>complex</code>es. </p> | ||
<h3>Example</h3> | ||
<pre class="block script indent0"> | ||
put the cos of 2 -- yields -0.416147 | ||
</pre> | ||
<h3>Description</h3> | ||
<p class="block paragraph indent0"> The <code>cos</code> function returns the cosine of the angle that is passed to it. The angle must be expressed in radians. </p> | ||
<p class="block paragraph indent0"> If the argument is an <code><a href="../dt/integer.html">integer</a></code> or a <code><a href="../dt/number.html">number</a></code>, a <code><a href="../dt/number.html">number</a></code> is returned. If the argument is a <code>complex</code>, a <code>complex</code> is returned. </p> | ||
<h3>Note</h3> | ||
<p class="block paragraph indent0"> Radians can be converted to degrees with the <code>toDegrees</code> function, or by multiplying by 180 and dividing by <code><a href="../cn/pi.html">pi</a></code>. Degrees can be converted to radians with the <code>toRadians</code> function, or by multiplying by <code><a href="../cn/pi.html">pi</a></code> and dividing by 180. </p> | ||
</body> | ||
</html> |
Oops, something went wrong.