---
server/modules/tags/rxmltags.pike | 45 ++++++++++++++++++++++++++++++++++++-
1 files changed, 44 insertions(+), 1 deletions(-)
diff --git a/server/modules/tags/rxmltags.pike
b/server/modules/tags/rxmltags.pike
index 18170f2..25fa6e7 100644
--- a/server/modules/tags/rxmltags.pike
+++ b/server/modules/tags/rxmltags.pike
@@ -72,7 +72,14 @@ private mapping(string:mixed) sexpr_constants = ([
"equal": equal,
"sizeof": sizeof,
- "pow":pow,
+ "pow": pow,
+ "exp": exp,
+ "log": log,
+ "sin": sin,
+ "cos": cos,
+ "tan": tan,
+ "atan": atan,
+ "sgn": sgn,
"abs": abs,
"search": lambda (mixed a, mixed b) {
return search (a, b) + 1; // RXML uses base 1.
@@ -9879,6 +9886,42 @@ After: &var.language;<br /></ex>
<i>expr2</i>.</td></tr>
<tr valign='top'>
+ <td><tt>exp(<i>expr</i>)</tt></td>
+ <td>Returns the value <i>e</i> raised to the power of
+ <i>expr</i>.</td></tr>
+
+ <tr valign='top'>
+ <td><tt>log(<i>expr</i>)</tt></td>
+ <td>Returns the natural logarithm of
+ <i>expr</i>.</td></tr>
+
+ <tr valign='top'>
+ <td><tt>sin(<i>expr</i>)</tt></td>
+ <td>Returns the sine of
+ <i>expr</i> in radians.</td></tr>
+
+ <tr valign='top'>
+ <td><tt>cos(<i>expr</i>)</tt></td>
+ <td>Returns the cosine of
+ <i>expr</i> in radians.</td></tr>
+
+ <tr valign='top'>
+ <td><tt>tan(<i>expr</i>)</tt></td>
+ <td>Returns the tangent of
+ <i>expr</i> in radians.</td></tr>
+
+ <tr valign='top'>
+ <td><tt>atan(<i>expr</i>)</tt></td>
+ <td>Returns the arc tangent of
+ <i>expr</i>.</td></tr>
+
+ <tr valign='top'>
+ <td><tt>sgn(<i>expr</i>)</tt></td>
+ <td>Returns the sign of
+ <i>expr</i>: <i>-1</i> for negative values, <i>0</i> for zero,
+ and <i>1</i> for positive values of <i>expr</i>.</td></tr>
+
+ <tr valign='top'>
<td><tt>abs(<i>expr</i>)</tt></td>
<td>Returns the absolute value of <i>expr</i>.</td></tr>
</table>
|