updated: help
git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@118 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
87
help/other_functions.html
Normal file
87
help/other_functions.html
Normal file
@@ -0,0 +1,87 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>TTCalc - Other functions</title>
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
|
||||
<param name="Keyword" value="sqrt">
|
||||
<param name="Keyword" value="root">
|
||||
<param name="Keyword" value="factorial">
|
||||
<param name="Keyword" value="abs">
|
||||
<param name="Keyword" value="sgn">
|
||||
<param name="Keyword" value="mod">
|
||||
<param name="Keyword" value="max">
|
||||
<param name="Keyword" value="min">
|
||||
<param name="Keyword" value="sum">
|
||||
<param name="Keyword" value="avg">
|
||||
</object>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Arithmetic functions</h1>
|
||||
|
||||
<p><strong>Note:</strong> If a function takes more than one argument, the arguments are separated with semicolon ';'.</p>
|
||||
|
||||
|
||||
<h2>Other functions</h2>
|
||||
|
||||
<dl>
|
||||
|
||||
<dt>sqrt(x)</dt>
|
||||
<dd>Sqrt returns the square root of x<br>sqrt(9)=3</dd>
|
||||
|
||||
<dt>root(x ; n)</dt>
|
||||
<dd>The nth root of a 'x', 'n' must be integer and not negative, if 'n' is zero the result is one,
|
||||
if 'x' is zero the result is zero and we assume that the root(0;0) is not defined, e.g.<br>
|
||||
root(8;3)=2<br>
|
||||
root(-8;3)=-2
|
||||
</dd>
|
||||
|
||||
<dt>factorial(x)</dt>
|
||||
<dd>The factorial function<br>factorial(6)=1*2*3*4*5*6=720</dd>
|
||||
|
||||
<dt>abs(x)</dt>
|
||||
<dd>The absolute value of x<br>abs(-10)=10</dd>
|
||||
|
||||
<dt>sgn(x)</dt>
|
||||
<dd>This function returns the sign of x that means when the x is positive the result is 1, when the x is negative
|
||||
the result is -1 and when the x is zero the result is zero too<br>
|
||||
sgn(-10)=-1<br>
|
||||
sgn(0)=0<br>
|
||||
sgn(5)=1</dd>
|
||||
|
||||
<dt>mod(x,y)</dt>
|
||||
<dd>Mod returns the remainder from the division x by y<br>mod(10; 2.2)=1.2 because 10=2.2*4 + 1.2</dd>
|
||||
|
||||
|
||||
<dt>max(x1; x2; ...)</dt>
|
||||
<dd>This functions takes any number of arguments. It returns the max value of them. If there aren't arguments
|
||||
the function returns the max value which can be held in this precision.<br>
|
||||
max(2;5;8;3)=8<br>
|
||||
max()=6.97846825730330952352039893e+646457021 (assuming the small precision is selected)</dd>
|
||||
|
||||
<dt>min(x1; x2; ...)</dt>
|
||||
<dd>This functions takes any number of arguments. It returns the min value of them. If there aren't arguments
|
||||
the function returns the min value which can be held in this precision.<br>
|
||||
min(45;-23;18;19)=-23<br>
|
||||
min()=-6.97846825730330952352039893e+646457021 (assuming the small precision is selected)
|
||||
</dd>
|
||||
|
||||
<dt>sum(x1; x2; ...)</dt>
|
||||
<dd>This functions takes one or more arguments. It returns the sum of them.<br>
|
||||
sum(4;2;9;3)=18
|
||||
</dd>
|
||||
|
||||
<dt>avg(x1; x2; ...)</dt>
|
||||
<dd>This functions takes one or more arguments. It returns the arithmetic mean. (The sum divided by
|
||||
the number of arguments)<br>
|
||||
avg(4;2;9;3)=4.5
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user