James Goddard e62c7da10c Bug fix for math library.
Estimated hours taken: 0.25
Branches: main

Bug fix for math library.

library/math.m:
	Changed the order of the parameters for the mercury implementation of
		math__log_2/2

	The old version is incorrect with respect to the library documentation.
	'math__log(B, X) = Log' is supposed to return Log as the logarithm to
	base B of X.  After doing domain checks, this predicate calls
	math__log_2(B, X), which is defined correctly for the C and C#
	implementations, but had the parameters the wrong way around for the
	(default) mercury implementation, so it in fact returned Log as the
	logarithm to base X of B (in other words the reciprocal of what was
	intended).
2003-12-11 03:05:39 +00:00
2003-05-21 15:31:21 +00:00
2003-12-11 03:05:39 +00:00
2003-11-04 05:04:08 +00:00
2002-10-10 07:27:36 +00:00
2003-01-24 06:59:18 +00:00

Reportedly Mercury does not work on Solaris 2.5.1 if it is compiled with
gcc 2.7.x.  It should however work fine on Solaris 2.5.1 if you compile
it with gcc 2.8, or if you use gcc 2.7.x with an earlier version of Solaris.

The binary distribution for Solaris that we distribute was compiled
with gcc 2.7.2, so if you have Solaris 2.5.1, you may need to compile
Mercury yourself from our source distribution.

("Solaris 2.x" is also known as "SunOS 5.x".)
Description
No description provided
Readme MIT 248 MiB
Languages
Mercury 85.3%
C 8.7%
Shell 1.4%
Makefile 1%
JavaScript 1%
Other 2.1%