Unified Diff: src/pkg/cmath/exp.go
Issue 3991043 :
code review 3991043: delete float, complex - code changes (Closed)
Patch Set: code review 3991043: delete float, complex - code changes
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/pkg/cmath/asin.go
src/pkg/cmath/cmath_test.go
src/pkg/cmath/conj.go
src/pkg/cmath/exp.go
src/pkg/cmath/isinf.go
src/pkg/cmath/isnan.go
src/pkg/cmath/log.go
src/pkg/cmath/pow.go
src/pkg/cmath/rect.go
src/pkg/cmath/sin.go
src/pkg/cmath/sqrt.go
src/pkg/cmath/tan.go
src/pkg/container/vector/numbers_test.go
src/pkg/encoding/binary/binary.go
src/pkg/encoding/binary/binary_test.go
src/pkg/exp/datafmt/datafmt_test.go
src/pkg/exp/eval/Makefile
src/pkg/exp/eval/bridge.go
src/pkg/exp/eval/eval_test.go
src/pkg/exp/eval/expr.go
src/pkg/exp/eval/expr1.go
src/pkg/exp/eval/gen.go
src/pkg/exp/eval/stmt.go
src/pkg/exp/eval/type.go
src/pkg/exp/eval/value.go
src/pkg/exp/ogle/rtype.go
src/pkg/expvar/expvar_test.go
src/pkg/flag/flag.go
src/pkg/flag/flag_test.go
src/pkg/fmt/fmt_test.go
src/pkg/fmt/format.go
src/pkg/fmt/print.go
src/pkg/fmt/scan.go
src/pkg/fmt/scan_test.go
src/pkg/fmt/stringer_test.go
src/pkg/go/doc/doc.go
src/pkg/go/printer/nodes.go
src/pkg/gob/codec_test.go
src/pkg/gob/decode.go
src/pkg/gob/encode.go
src/pkg/gob/encoder_test.go
src/pkg/gob/type.go
src/pkg/gob/type_test.go
src/pkg/json/decode.go
src/pkg/json/decode_test.go
src/pkg/json/stream_test.go
src/pkg/math/all_test.go
src/pkg/math/gamma.go
src/pkg/math/jn.go
src/pkg/math/lgamma.go
src/pkg/math/pow.go
src/pkg/rand/rand.go
src/pkg/rand/rand_test.go
src/pkg/rand/zipf.go
src/pkg/reflect/all_test.go
src/pkg/reflect/type.go
src/pkg/reflect/value.go
src/pkg/runtime/type.h
src/pkg/runtime/type.go
src/pkg/sort/search.go
src/pkg/sort/search_test.go
src/pkg/sort/sort.go
src/pkg/sort/sort_test.go
src/pkg/strconv/atof.go
src/pkg/strconv/atof_test.go
src/pkg/strconv/ftoa.go
src/pkg/strconv/ftoa_test.go
src/pkg/testing/quick/quick.go
src/pkg/testing/quick/quick_test.go
src/pkg/xml/xml_test.go
test/append.go
test/blank.go
test/cmplx.go
test/cmplxdivide.c
test/cmplxdivide1.go
test/complit.go
test/const1.go
test/convlit.go
test/decl.go
test/declbad.go
test/fixedbugs/bug006.go
test/fixedbugs/bug007.go
test/fixedbugs/bug010.go
test/fixedbugs/bug011.go
test/fixedbugs/bug035.go
test/fixedbugs/bug047.go
test/fixedbugs/bug080.go
test/fixedbugs/bug109.go
test/fixedbugs/bug167.go
test/fixedbugs/bug193.go
test/fixedbugs/bug220.go
test/fixedbugs/bug230.go
test/fixedbugs/bug238.go
test/fixedbugs/bug248.dir/bug2.go
test/fixedbugs/bug248.dir/bug3.go
test/fixedbugs/bug299.go
test/fixedbugs/bug307.go
test/fixedbugs/bug315.go
test/fixedbugs/bug316.go
test/func.go
test/func1.go
test/golden.out
test/interface/explicit.go
test/iota.go
test/ken/cplx0.go
test/ken/cplx1.go
test/ken/cplx2.go
test/ken/cplx3.go
test/ken/cplx4.go
test/ken/cplx5.go
test/ken/robfunc.go
test/ken/simpconv.go
test/ken/slicearray.go
test/ken/sliceslice.go
test/literal.go
test/map.go
test/named.go
test/nil.go
test/recover2.go
test/test0.go
test/typeswitch.go
test/zerodivide.go
Index: src/pkg/cmath/exp.go
===================================================================
--- a/src/pkg/cmath/exp.go
+++ b/src/pkg/cmath/exp.go
@@ -51,5 +51,5 @@
func Exp(x complex128) complex128 {
r := math.Exp(real(x))
s, c := math.Sincos(imag(x))
- return cmplx(r*c, r*s)
+ return complex(r*c, r*s)
}