The right answer of -1^2 is?
  Home FAQ Contact Sign in
comp.lang.functional only
 
Advanced search
POPULAR GROUPS

more...

 Up
The right answer of -1^2 is?         

Group: comp.lang.functional · Group Profile
Author: Förster vom Silberwald
Date: Oct 3, 2007 11:13

Hello:

Please do not get worked out over my crossposting to lang.lisp,
lang.scheme, and lang.functionl.

There has been a discussion on heise.de about the following:

What is the correct answer of the following: -1^2

I had thought it is +1. My Bigloo Scheme gives: (expt -1 2) --> 1

However, the R language tailored to statistical calculations gives the
following: print(-1^2)
--> -1

Some have argued on heise.de that -1 is mathematically speaking the
right answer.

Thanks, for any some more insights into a not so easy problem I guess.
63 Comments
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
PASS Geo-Geotude-1.0 amd64-freebsd 6.2-releaseperl.cpan.testers ·
PASS Net-Twitter-1.04 i686-linux-thread-multi-64int-ld 2.6.16.38perl.cpan.testers ·
PASS IPC-SysV-1.99_02 alpha-netbsd 2.1.0_stableperl.cpan.testers ·
PASS WWW-Search-2.497 i686-linux-64int 2.6.22-1-k7perl.cpan.testers ·
PASS Games-RolePlay-MapGen-1.2.20 i386-netbsd-thread-multi-64int 3.1perl.cpan.testers ·