Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(23)

Issue 196063: code review 196063: math: Change veryclose to close for Sinh and Exp tests. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 6 months ago by dho
Modified:
15 years, 6 months ago
Reviewers:
CC:
rsc, eds, golang-dev, jtomaschke
Visibility:
Public.

Description

math: Change veryclose to close for Sinh and Exp tests.

Patch Set 1 #

Patch Set 2 : code review 196063: math: Change veryclose to close for Sinh and Exp tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/pkg/math/all_test.go View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10
dho
Hello rsc (cc: eds, golang-dev@googlegroups.com, jtomaschke), I'd like you to review this change.
15 years, 6 months ago (2010-01-29 20:29:51 UTC) #1
rsc1
LGTM
15 years, 6 months ago (2010-01-29 20:53:13 UTC) #2
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=9325fb0c7e2c *** math: Change veryclose to close for Sinh and Exp tests. ...
15 years, 6 months ago (2010-01-29 20:54:11 UTC) #3
jtomaschke
If you want, you can approximate ε: func ε() float64 { x := float64(1.0) for ...
15 years, 6 months ago (2010-01-29 22:25:03 UTC) #4
rsc
On Fri, Jan 29, 2010 at 14:25, James Tomaschke <gith.tech@gmail.com> wrote: > If you want, ...
15 years, 6 months ago (2010-01-29 22:32:55 UTC) #5
jtomaschke
Russ Cox wrote: > Having approximated it (or just computed it and written > down ...
15 years, 6 months ago (2010-01-29 22:50:25 UTC) #6
rsc
> > func veryclose(a, b float64) bool { return tolerance(a, b, ε) } > Given ...
15 years, 6 months ago (2010-01-29 22:58:12 UTC) #7
jtomaschke
Russ Cox wrote: > Given your definition of ε, tolerance(a, b, ε) is just a ...
15 years, 6 months ago (2010-01-29 23:57:33 UTC) #8
rsc
> > Sure, 2ε on my platform (~4.44e-16) is essentially the 4e-16 constant > you ...
15 years, 6 months ago (2010-01-30 00:41:55 UTC) #9
jtomaschke
15 years, 6 months ago (2010-01-30 02:34:21 UTC) #10
Russ Cox wrote:
> It's not platform-specific.  No matter what the platform, these
> are 64-bit IEEE-754 floating point values.
>
> Russ
>   
Oh my mistake, thought there was some non-standard hardware problems.

The only thing else I can think of:
  fldcw $27F

It's been a long time since I've done any 387.

Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b