index 581dce9cecde4da42bdda56b771249105c9c78f2..8f414c773f76e149b35c1c0c354e266f5ce48937 100644 (file)
Pop two elements from the stack, compare them for the selected condition
and return 1 for true or 0 for false. Comparing an I<unknown> or an
-I<infinite> value will always result in 0 (false).
+I<infinite> value will result in I<unknown> returned ... which will also be
+treated as false by the B<IF> call.
B<UN, ISINF>
Example: C<A,B,C,IF> should be read as C<if (A) then (B) else (C)>
-Z<>
-
=item Comparing values
B<MIN, MAX>
Example: C<CDEF:a=alpha,0,100,LIMIT> will return I<unknown> if
alpha is lower than 0 or if it is higher than 100.
-Z<>
-
=item Arithmetics
B<+, -, *, /, %>
Convert angle in degrees to radians, or radians to degrees.
+B<ABS>
+
+Take the absolute value.
+
=item Set Operations
B<SORT, REV>
compute the average of the values v1 to v6 after removing the smallest and
largest.
+B<AVG>
+
+Pop one element (I<count>) from the stack. Now pop I<count> elements and build the
+average, ignoring all UNKNOWN values in the process.
+
+Example: C<CDEF:x=a,b,c,d,4,AVG>
+
B<TREND>
Create a "sliding window" average of another data series.
Duplicate the top element, remove the top element, exchange the two
top elements.
-Z<>
-
=back
=head1 VARIABLES
=head1 AUTHOR
-Program by Tobias Oetiker E<lt>oetiker@ee.ethz.chE<gt>
+Program by Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
-This manual page by Alex van den Bogaerdt E<lt>alex@ergens.op.het.netE<gt>
+This manual page by Alex van den Bogaerdt E<lt>alex@vandenbogaerdt.nlE<gt>
+with corrections and/or additions by several people