]> Cypherpunks repositories - gostls13.git/commitdiff
tools to update math lib.
authorRob Pike <r@golang.org>
Sat, 12 Jul 2008 22:56:06 +0000 (15:56 -0700)
committerRob Pike <r@golang.org>
Sat, 12 Jul 2008 22:56:06 +0000 (15:56 -0700)
you need a hack to 6ar to do this, but it's not checked in yet

SVN=126943

src/lib/math/asin.go
src/lib/math/atan2.go
src/lib/math/exp.go
src/lib/math/main.go
src/lib/math/pow.go
src/lib/math/sinh.go
src/lib/math/sys.go [deleted file]
src/lib/math/tanh.go

index f7a286b32de123ae0a351fcab513406464f2d1f4..1a0e50d82f26796953d22efd46680d69dea796c9 100644 (file)
@@ -4,8 +4,8 @@
 
 package math
 
-import math "atan"
-import math "sqrt"
+import math "math"
+import math "math"
 
 export asin, acos
 
index c002c8354f1d1c66e263759935be7eb74204af76..e870847a23b0529d400908616b2093f119b60e5f 100644 (file)
@@ -4,7 +4,7 @@
 
 package math
 
-import math "atan"
+import math "math"
 export atan2
 
 /*
index cce9386b776e2fb7afc33d3f0dd0e0fa6d1a3b92..414abb4bc99924afbd19a2d23c2ed2cb5d0d0a6f 100644 (file)
@@ -4,7 +4,7 @@
 
 package math
 
-import math "floor"
+import math "math"
 export exp
 
 /*
index 7b266d878aafd15c480ecef979fb8e442111594f..6e56dcf9492d4d66f8bcdee897b70663266ac7c3 100644 (file)
@@ -5,25 +5,7 @@
 
 package main
 
-//import math "math"
-
- import math "asin"
- import math "atan"
- import math "atan2"
- import math "exp"
- import math "fabs"
- import math "floor"
- import math "fmod"
- import math "hypot"
- import math "log"
- import math "pow"
- import math "pow10"
- import math "sin"
- import math "sinh"
- import math "sqrt"
- import math "tan"
- import math "tanh"
-
+import math "math"
 
 const  length  = 10;
 
index 2581f8d33734a2004d0cedf6a5f87303cf0a113a..902c7be4ed2373ed004a94f53b0e8132b4e11ebe 100644 (file)
@@ -4,10 +4,10 @@
 
 package math
 
-import         math "floor"
-import         math "sqrt"
-import         math "log"
-import         math "exp"
+import         math "math"
+import         math "math"
+import         math "math"
+import         math "math"
 export         pow
 
 /*
index fd3b50a7d337c13f49c52009dd7fcb91f9002b42..7db190b10b41f5c2e8d3b45d9c4a87dd8c3b1d24 100644 (file)
@@ -4,7 +4,7 @@
 
 package math
 
-import math "exp"
+import math "math"
 export sinh, cosh
 
 /*
diff --git a/src/lib/math/sys.go b/src/lib/math/sys.go
deleted file mode 100644 (file)
index a24c819..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2009 The Go Authors.  All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package sys
-
-func   modf(a float64) (x float64, y float64);
-func   frexp(a float64) (e int, m float64);
-func   ldexp(f float64, e int) float64;
-
-func   Inf(n int) float64;
-func   NaN() float64;
-func   isInf(arg float64, n int) bool;
-
-export modf, frexp, ldexp
-export NaN, isInf, Inf
index f857423035abedb5129b5a45fb78aa7fad3900de..bf5b2dae6c8eb74d9e03d05d02d81f612bb89e54 100644 (file)
@@ -4,7 +4,7 @@
 
 package math
 
-import         math "sinh"
+import         math "math"
 export         tanh
 
 /*