1
0
mirror of https://github.com/golang/go synced 2024-10-04 12:11:24 -06:00
go/src/pkg/math
Michael T. Jones eea28f6701 math/big: add support for general encoding interfaces
TextMarshaller and TextUnmarshaller to ease transport of
unlimited precision rational numbers.

Fixes #7287.

Consists of encode and decode functions and two test
functions, one using JSON and one using XML. Each
verifies round trips for integers (rationals with
denominator == 1) and for fractional vaues.

LGTM=gri
R=gri, cookieo9, bradfitz, mtj
CC=golang-codereviews
https://golang.org/cl/61180043
2014-02-13 08:42:19 -08:00
..
big math/big: add support for general encoding interfaces 2014-02-13 08:42:19 -08:00
cmplx
rand math/rand: Float32/64 must only return values in [0,1) 2013-12-18 15:38:53 -05:00
abs_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
abs_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
abs_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
abs.go
acosh.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
all_test.go math: handle exponent separately in Log2 2012-12-20 12:23:27 -05:00
asin_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
asin_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
asin_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
asin.go math: the trig functions work in radians; document that 2013-10-07 16:32:47 -07:00
asinh.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
atan2_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan2_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan2_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan2.go
atan_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan.go math: the trig functions work in radians; document that 2013-10-07 16:32:47 -07:00
atanh.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
bits.go all: be more idiomatic when documenting boolean return values. 2013-07-23 11:59:49 +10:00
cbrt.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
const.go
copysign.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
dim_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
dim_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
dim_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
dim.go
erf.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
exp2_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp2_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp2_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp.go
expm1_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
expm1_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
expm1_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
expm1.go
export_test.go
floor_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
floor_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
floor_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
floor.go
frexp_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
frexp_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
frexp_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
frexp.go
gamma.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
hypot_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
hypot_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
hypot_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
hypot.go math: make Hypot special cases look like others 2013-03-25 17:01:40 -04:00
j0.go
j1.go
jn.go
ldexp_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
ldexp_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
ldexp_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
ldexp.go
lgamma.go
log1p_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log1p_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log1p_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log1p.go
log10_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log10_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log10_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log10.go math: handle exponent separately in Log2 2012-12-20 12:23:27 -05:00
log_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log.go
logb.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
mod_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
mod_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
mod_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
mod.go
modf_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
modf_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
modf_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
modf.go
nextafter.go
pow10.go
pow.go
remainder_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
remainder_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
remainder_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
remainder.go doc: various "the the" and other typos 2012-07-08 11:57:04 +10:00
signbit.go
sin_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sin_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sin_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sin.go math: the trig functions work in radians; document that 2013-10-07 16:32:47 -07:00
sincos_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sincos_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sincos_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sincos.go math: make function documentation more regular 2012-04-06 14:01:12 -04:00
sinh.go
sqrt_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sqrt_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sqrt_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sqrt.go math: remove repeated comment. 2013-03-22 14:54:20 +11:00
tan_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
tan_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
tan_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
tan.go math: the trig functions work in radians; document that 2013-10-07 16:32:47 -07:00
tanh.go math: modify a comment to the convention format. 2013-03-25 08:43:51 -07:00
unsafe.go