not linux, but an intriguing problem
Cory Bosley
kclug at bosleys.org
Fri Apr 4 22:24:17 CST 2003
On Fri, Apr 04, 2003 at 03:54:58PM -0600, Matt Luettgen wrote:
> How would you find the absolute value of a number, with these operators
> (,),+,-,*,/, and ^
((x)^2)^(1/2) should do the trick.
If you need to use the other operators, well, I suppose you could
insert something superfluous there.
I'm assuming you can insert other numbers there; if not:
((x) ^ ((x/x) + (x/x))) ^ ((x/x) / ((x/x) + (x/x)))
--
Cory Bosley
More information about the Kclug
mailing list