[pure-lang-svn] SF.net SVN: pure-lang: [347] pure/trunk/lib/primitives.pure
Status: Beta
Brought to you by:
agraef
From: <ag...@us...> - 2008-07-01 10:50:19
|
Revision: 347 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=347&view=rev Author: agraef Date: 2008-07-01 03:50:29 -0700 (Tue, 01 Jul 2008) Log Message: ----------- Fix up real powers of integers so that we get a complex result with math.pure. Modified Paths: -------------- pure/trunk/lib/primitives.pure Modified: pure/trunk/lib/primitives.pure =================================================================== --- pure/trunk/lib/primitives.pure 2008-07-01 10:43:04 UTC (rev 346) +++ pure/trunk/lib/primitives.pure 2008-07-01 10:50:29 UTC (rev 347) @@ -308,6 +308,7 @@ x::double^y::bigint = c_pow x (double y); x::int^y::double | x::bigint^y::double = c_pow (double x) y if x>=0 || int y==y; + = double x^y otherwise; /* Pointer arithmetic. We do this using bigints, so that the code is portable to 64 bit systems. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |