summaryrefslogtreecommitdiff
path: root/src/pkg/math
AgeCommit message (Collapse)AuthorFilesLines
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg37-114/+865
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg82-227/+406
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg40-163/+146
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg41-561/+2063
2012-06-14Imported Upstream version 1.0.2upstream/1.0.2Ondřej Surý2-5/+23
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý143-1142/+11741
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý103-0/+8662
2011-09-13Imported Upstream version 60Ondřej Surý103-8676/+0
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý4-2/+19
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-1/+1
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý9-19/+170
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý23-540/+995
2010-06-30math: amd64 versions of exp and fabsCharles L. Dorian6-11/+141
Benchmark of exp to 28 ns/op from 64 ns/op, on 2.53GHz Intel Core 2 Duo. R=rsc CC=golang-dev http://codereview.appspot.com/1594041 Committer: Russ Cox <rsc@golang.org>
2010-06-08gc: new typechecking rulesRuss Cox1-0/+67
* Code for assignment, conversions now mirrors spec. * Changed some snprint -> smprint. * Renamed runtime functions to separate interface conversions from type assertions: convT2I, assertI2T, etc. * Correct checking of \U sequences. Fixes issue 840. Fixes issue 830. Fixes issue 778. R=ken2 CC=golang-dev http://codereview.appspot.com/1303042
2010-06-03math: fix typo in Exp2 benchmarkCharles L. Dorian1-1/+1
Was timing Exp, not Exp2. R=rsc, r CC=golang-dev http://codereview.appspot.com/1521042 Committer: Rob Pike <r@golang.org>
2010-06-02math: Pow special cases (signed zero, IEEE 754-2008)Charles L. Dorian2-190/+245
Also added more tests for acosh, hypot, log, log10, log2 in all_test.go. R=rsc CC=golang-dev http://codereview.appspot.com/1417041 Committer: Russ Cox <rsc@golang.org>
2010-05-18math: amd64 versions of fdim, fmax, fminCharles L. Dorian4-2/+37
Uses the SSE2 max, min instructions. Also shorter sqrt_amd64.s R=rsc CC=golang-dev http://codereview.appspot.com/1216042 Committer: Russ Cox <rsc@golang.org>
2010-05-18math: signed zero Sqrt special caseCharles L. Dorian3-6/+12
IEEE 754 says: sqrt(-0) = -0 R=rsc CC=golang-dev http://codereview.appspot.com/1098041 Committer: Russ Cox <rsc@golang.org>
2010-05-02math: fix typo in Cbrt descriptionCharles L. Dorian1-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/979043 Committer: Russ Cox <rsc@golang.org>
2010-04-26math: more special cases for signed zeroCharles L. Dorian8-164/+421
R=rsc CC=golang-dev http://codereview.appspot.com/937042 Committer: Russ Cox <rsc@golang.org>
2010-04-09math: use ** for exponentiation in commentsCharles L. Dorian17-91/+91
R=rsc CC=golang-dev http://codereview.appspot.com/908041 Committer: Russ Cox <rsc@golang.org>
2010-04-08math: atan2 special cases (negative zero)Charles L. Dorian5-32/+91
Added Signbit(), revised Copysign() R=rsc CC=golang-dev http://codereview.appspot.com/822045 Committer: Russ Cox <rsc@golang.org>
2010-03-26math: add J1, Y1, Jn and Yn (Bessel functions)Charles L. Dorian5-42/+970
Also amend j0.go (variable name conflict, small corrections). R=rsc CC=golang-dev http://codereview.appspot.com/769041 Committer: Russ Cox <rsc@golang.org>
2010-03-24math: add J0 and Y0 (Bessel functions)Charles L. Dorian3-0/+528
R=rsc CC=golang-dev http://codereview.appspot.com/661044 Committer: Russ Cox <rsc@golang.org>
2010-03-19math: add Gamma functionCharles L. Dorian3-0/+235
R=rsc CC=golang-dev http://codereview.appspot.com/649041 Committer: Russ Cox <rsc@golang.org>
2010-03-11math, path: minor comment fixesRobert Griesemer1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/444043
2010-03-10math package: minor documentation fixRobert Griesemer1-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/424041
2010-03-05math: faster hypotCharles L. Dorian5-24/+81
Use hardware sqrt for faster hypot; preserve software-only hypot as hypotGo (like sqrtGo); enable benchmarking of hypotGo. R=rsc CC=golang-dev http://codereview.appspot.com/229049 Committer: Russ Cox <rsc@golang.org>
2010-03-05frexp.go: remove html from commentRobert Griesemer1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/250041
2010-03-03math: added ilogb, logb, remainder, tests and special conditionsCharles L. Dorian9-5/+331
Also added expm1_386 and remainder_386; shortened exp_386 R=rsc CC=golang-dev http://codereview.appspot.com/217109 Committer: Russ Cox <rsc@golang.org>
2010-02-25go/printer, gofmt: correct indentation after certain /*-style commentsRobert Griesemer1-1/+1
- applied gofmt to src and misc Note: This fix improved formatting of src/pkg/math/all_test.go but leads to a degradation in src/pkg/exp/4s/xs.go. The latter happened to "work" before accidentally. Fixing the alignment in that case in general will be a separate CL. Fixes issue 628. R=rsc CC=golang-dev http://codereview.appspot.com/223054
2010-02-22math: add lgamma; in-line special cases of acosh, nextafterCharles L. Dorian5-3/+404
Added lgamma.go, tests and special cases. R=rsc CC=golang-dev http://codereview.appspot.com/217060 Committer: Russ Cox <rsc@golang.org>
2010-02-18math: add Cbrt and Sincos; x87 versions of Sincos, Frexp, LdexpCharles L. Dorian13-53/+311
Added special condition and benchmarks for Cbrt, Sincos. Took Frexp and Ldexp out of bits.go. R=rsc CC=golang-dev http://codereview.appspot.com/206084 Committer: Russ Cox <rsc@golang.org>
2010-02-10math: add Exp2; 386 FPU versions of Exp2 and Log1pCharles L. Dorian7-0/+115
Added tests and benchmarks for Exp2 (special cases same as Exp). Log1p also enhances speed of inverse hyperbolics. R=rsc CC=golang-dev http://codereview.appspot.com/206058 Committer: Russ Cox <rsc@golang.org>
2010-02-09math: add functions Log2, Nextafter, Fdim, Fmax, FminCharles L. Dorian9-4/+206
Add functions, tests and benchmarks. Fix typos in comments in expm1 and hypot_386. Fix Acosh domain error in benchmark test. R=rsc CC=golang-dev http://codereview.appspot.com/204069 Committer: Russ Cox <rsc@golang.org>
2010-02-05math: Atan2 special cases and tests; atan2_386Charles L. Dorian5-3/+166
Added special cases, tests and benchmarks for Atan2; added 386 FPU version of Atan2. R=rsc CC=golang-dev http://codereview.appspot.com/201068 Committer: Russ Cox <rsc@golang.org>
2010-02-05math: special cases for Modf, Frexp and Ldexp; added Modf_386Charles L. Dorian6-26/+188
Also moved Modf from bits.go into modf.go and added timing tests. R=rsc CC=golang-dev http://codereview.appspot.com/202042 Committer: Russ Cox <rsc@golang.org>
2010-02-01math: change Cosh test to close, not veryclose (needed on some x86 chips)Russ Cox1-1/+1
R=r CC=Charlie Dorian, golang-dev http://codereview.appspot.com/199054
2010-02-01math: add functions; update tests and special casesCharles L. Dorian18-148/+1727
Added special cases to comments for asin.go and fabs.go. Added Trunc() to floor.go and floor_386.s. Fixed formatting error in hypot_386.s Added new functions Acosh, Asinh, Atanh, Copysign, Erf, Erfc, Expm1, and Log1p. Added 386 FPU version of Fmod. Added tests, benchmarks, and precision to expected results in all_test.go. Edited makefile so it all compiles. R=rsc CC=golang-dev http://codereview.appspot.com/195052 Committer: Russ Cox <rsc@golang.org>
2010-01-29math: Change veryclose to close for Sinh and Exp tests.Devon H. O'Dell1-2/+2
Fixes issue 550. R=rsc CC=eds, golang-dev, jtomaschke http://codereview.appspot.com/196063 Committer: Russ Cox <rsc@golang.org>
2010-01-26math: 386 FPU hypotCharles L. Dorian5-4/+68
Added 386 FPU version of Hypot; modified all_test.go to test Hypot with large arguments. Also edited sqrt.go to remove Sqrt(0) as a special case. R=rsc CC=golang-dev http://codereview.appspot.com/186180 Committer: Russ Cox <rsc@golang.org>
2010-01-25in C and asm, replace pkg·name with ·nameRuss Cox10-14/+14
(eliminate assumption of package global name space, make code easier to move between packages). R=r CC=golang-dev http://codereview.appspot.com/194072
2010-01-15math: special cases for HypotCharles L. Dorian2-24/+95
Added special case tests to all_test.go. Added tests to hypot.go, otherwise hangs. R=rsc CC=golang-dev http://codereview.appspot.com/186118 Committer: Russ Cox <rsc@golang.org>
2010-01-15math: 386 FPU functionsCharles L. Dorian17-0/+278
sin, cos, tan, asin, acos, atan, exp, log, log10, floor, ceil, and fabs R=rsc CC=golang-dev http://codereview.appspot.com/189083 Committer: Russ Cox <rsc@golang.org>
2010-01-11math: special cases for Ceil, Exp, Floor, Log, Log10Charles L. Dorian4-10/+108
Added special case tests to all_test.go. Added tests to Floor, in-lined tests in Exp and Log. R=rsc CC=golang-dev http://codereview.appspot.com/184081 Committer: Russ Cox <rsc@golang.org>
2010-01-11math: special cases for FmodCharles L. Dorian2-5/+124
Added special case tests to all_test.go for Fmod. Fixed Fmod [hung for Fmod(+/-Inf, <finite>)]. Also added test for Ceil in all_test.go. R=rsc CC=golang-dev http://codereview.appspot.com/186076 Committer: Russ Cox <rsc@golang.org>
2010-01-12Clean up and make consistent the comments in the math package.Rob Pike11-64/+60
R=rsc CC=golang-dev http://codereview.appspot.com/186042
2010-01-11math: fix pow10 comment, test portable SqrtRuss Cox3-5/+17
R=r CC= golang-dev, Charlie Dorian, golang-dev http://codereview.appspot.com/184058
2010-01-10math: Sqrt using 386 FPU.Charles L. Dorian5-129/+162
Note: sqrt_decl.go already in src/pkg/math/. R=rsc CC=golang-dev http://codereview.appspot.com/183155 Committer: Russ Cox <rsc@golang.org>
2010-01-08math: special cases for Atan, Asin and AcosCharles L. Dorian4-86/+198
Added tests for NaN and out-of-range values. Combined asin.go and atan.go into atan.go. R=rsc CC=golang-dev http://codereview.appspot.com/180065 Committer: Russ Cox <rsc@golang.org>