<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD><TITLE>calculator-in-the-URL: reference</TITLE>
<META NAME="Author" CONTENT="Magnus Bodin">
<META NAME="description" CONTENT="A calculator in the url. In the subdomain. Change the domain, and the result will be changed. Totally unique. Awardes as useless site of the week (July 1st, 1998)">
<META NAME="keywords" CONTENT="magnus bodin, bodin, magnus, url, calculator, url-calculator, fluff, bodin.org, x42, x42.com, calculator-in-the-url">
<!--
(C) Magnus Bodin 1998 on worldwide and molecular level.
$Id: \044urlcalc(reference).x42.com.shtml,v 1.2 1999/08/31 13:51:17 magnus Exp $
-->
</HEAD>
<BODY BGCOLOR="#808080">
<CENTER>
<TABLE CELLPADDING=5><TR><TD ALIGN="CENTER">
<TABLE CELLPADDING=0 BGCOLOR="#000080"><TR><TD ALIGN="CENTER">
<TABLE CELLPADDING=0 BGCOLOR="#808080"><TR><TD VALIGN="MIDDLE" ALIGN="CENTER">
<TABLE CELLPADDING=10 BGCOLOR="#FFFFFF" WIDTH=450><TR><TD VALIGN="MIDDLE">
<TABLE CELLSPACING=10><TR><TD VALIGN="TOP">
<FONT FACE="Helvetica, Arial" SIZE="+1"><B>calculator-in-the-URL: [REFERENCE]</B></FONT>
<BR><FONT SIZE="-1">[<A HREF="http://$urlcalc(about).x42.com/" TARGET="_top">about</A>] • [<A HREF="http://$urlcalc(help).x42.com/" TARGET="_top">help</A>] • [<B>reference</B>] • [<A HREF="http://bodin.org/" TARGET="_top">home</A>]
<BR><BR>
The urlcalculator demonstrates the weirdest URL-tricks.
*YOU* change the hostname to the function and arguments you want; and you get the result on
the homepage of the site.
</FONT><BR><BR>
<FONT FACE="Geneva, Courier, fixed">
Basic function implemented:<BR>
Remember: All functions are on the form:
<CODE><B>$</B><function><B>(</B><parameters><B>).x42.com</B></CODE><BR>
e.g. <A HREF="http://$add(3,-4,3.2,-8.91).x42.com/" TARGET="_top"><B>http://$</B>add<B>(</B>3,-4,3.2,-8.91<B>).x42.com</B></A>
</FONT>
</TD><TD VALIGN="TOP">
<A HREF="http://$sum(7,18,-9.4).x42.com/" TARGET="_top"><IMG SRC="http://x42.com/images/machines/202back_s.jpg" WIDTH=100 HEIGHT=100 BORDER=0 ALT="the machinery"></A>
</TD></TR></TABLE><BR>
<PRE>
<B>$sum(n, ...)</B> sum of arguments
<B>$add(n, ...)</B> sum of arguments
<B>$diff(n, ...)</B> (running) difference between arguments
<B>$sub(n, ...)</B> difference
<B>$div(n, ...)</B> division
<B>$mod(n, ...)</B> modulo
<B>$mean(n, ...)</B> mean value of arguments
<B>$max(n, ...)</B> maximum value of arguments
<B>$min(n, ...)</B> minimum value of arguments
suffixes:
<B>.int.</B> truncates to integer part.
<B>.frac.</B> leaves fraction part.
<B>.abs.</B> absoulte value
<B>.hex.</B> converts integer value to hexadecimal value
<B>.oct.</B> converts integer value to octal value
trig functions:
<B>$sin(x)</B> sinus
<B>$cos(x)</B> cosinus
<B>$tan(x)</B> tangens (i.e. sin(x)/cos(x))
trig suffixes:
<B>.deg.</B> makes 360° == full circle
<B>.grad.</B> makes 400° as a full circle
exp functions
<B>$exp(x)</B> power of e (e<SUP>x</SUP>)
<B>$log(x)</B> natural logaritm (base e)
<B>$sqrt(x)</B> square root
Non-math-functions:
<B>$rfc(no)</B> show rfc #no
<B>rfc<i>n</i></B> show rfc #n.
<B>$wedding(a, b)</B> meaningless greetfunction to
someone who's getting married.
<B>$divorce(a, b)</B> should not be used.
<P>
</FONT>
<BR><P ALIGN="RIGHT"><A HREF="http://$urlcalc(help).x42.com/" TARGET="_top"><FONT SIZE="-1">help</A><BR><A HREF="http://$urlcalc(about).x42.com/" TARGET="_top">about</FONT></A></P><BR>
</TD></TR></TABLE></TD></TR></TABLE>
</TD></TR></TABLE>
</TD></TR></TABLE><BR>
© Copyright, idea & implementation 1998-06-23 by <A HREF="http://bodin.org/">Magnus Bodin</A>
</CENTER></BODY></HTML>