Changes

Jump to navigation Jump to search
405 bytes removed ,  00:42, 26 May 2012
m
Text replace - "| valign='top' | " to "| "
|<code><b>math:pi</b>() as xs:double</code>
|-
| valign='top' | '''Summary'''
|Returns the <code>xs:double</code> value of the mathematical constant π whose lexical representation is 3.141592653589793.
|-
| valign='top' | '''Examples'''
|
* <code>2*math:pi()</code> returns <code>6.283185307179586e0</code>.
|<code><b>math:e</b>() as xs:double</code>
|-
| valign='top' | '''Summary'''
|Returns the <code>xs:double</code> value of the mathematical constant <i>e</i> whose lexical representation is 2.718281828459045.
|-
| valign='top' | '''Examples'''
|
* <code>5*math:e()</code> returns <code>13.591409142295225</code>.
|<code><b>math:sqrt</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the square root of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the <code>xs:double</code> value of the mathematical square root of <code>$arg</code>.
|}
|<code><b>math:sin</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the sine of the <code>$arg</code>, expressed in radians.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the sine of <code>$arg</code>, treated as an angle in radians.
|}
|<code><b>math:cos</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the cosine of <code>$arg</code>, expressed in radians.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the cosine of <code>$arg</code>, treated as an angle in radians.
|}
|<code><b>math:tan</b>($ as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the tangent of <code>$arg</code>, expressed in radians.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the tangent of <code>$arg</code>, treated as an angle in radians.
|}
|<code><b>math:asin</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the arc sine of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the arc sine of <code>$arg</code>, returned as an angle in radians in the range -π/2 to +π/2.
|}
|<code><b>math:acos</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the arc cosine of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the arc cosine of <code>$arg</code>, returned as an angle in radians in the range 0 to +π.
|}
|<code><b>math:atan</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the arc tangent of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the arc tangent of <code>$arg</code>, returned as an angle in radians in the range -π/2 to +π/2.
|}
|<code><b>math:atan2</b>($arg1 as xs:double?, $arg2 as xs:double) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the arc tangent of <code>$arg1</code> divided by <code>$arg2</code>, the result being in the range -π/2 to +π/2 radians.<br/>If <code>$arg1</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the arc tangent of <code>$arg1</code> divided by <code>$arg2</code>, returned as an angle in radians in the range -π to +π.
|}
|<code><b>math:pow</b>($arg1 as xs:double?, $arg2 as xs:double) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns <code>$arg1</code> raised to the power of <code>$arg2</code>.<br/>If <code>$arg1</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the <code>$arg1</code> raised to the power of <code>$arg2</code>.
|-
| valign='top' | '''Examples'''
|
* <code>math:pow(2, 3)</code> returns <code>8</code>.
|<code><b>math:exp</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns <i>e</i> raised to the power of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the value of <i>e</i> raised to the power of <code>$arg</code>.
|-
| valign='top' | '''Examples'''
|
* <code>math:exp(1)</code> returns <i>e</i>.
|<code><b>math:log</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the natural logarithm of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the natural logarithm (base <i>e</i>) of <code>$arg</code>.
|-
| valign='top' | '''Examples'''
|
* <code>math:log(math:e())</code> returns <code>1</code>.
|<code><b>math:log10</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the base 10 logarithm of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the base 10 logarithm of <code>$arg</code>.
|-
| valign='top' | '''Examples'''
|
* <code>math:log(100)</code> returns <code>2</code>.
|<code><b>math:random</b>() as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns a random <code>xs:double</code> value between <code>0.0</code> and <code>1.0</code>.
|}
|<code><b>math:sinh</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the hyperbolic sine of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the hyperbolic sine of <code>$arg</code>.
|-
| valign='top' | '''Examples'''
|
* <code>math:sinh(0)</code> returns <code>0</code>.
|<code><b>math:cosh</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the hyperbolic cosine of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the hyperbolic cosine of <code>$arg</code>.
|-
| valign='top' | '''Examples'''
|
* <code>math:cosh(0)</code> returns <code>1</code>.
|<code><b>math:tanh</b>($arg as xs:double?) as xs:double?</code>
|-
| valign='top' | '''Summary'''
|Returns the hyperbolic tangent of <code>$arg</code>.<br/>If <code>$arg</code> is the empty sequence, the empty sequence is returned.<br />Otherwise the result is the hyperbolic tangent of <code>$arg</code>.
|-
| valign='top' | '''Examples'''
|
* <code>math:tanh(100)</code> returns <code>1</code>.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu