Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerical noise in devel/sage/sage/symbolic/constants_c.pyx #8374

Closed
sagetrac-drkirkby mannequin opened this issue Feb 26, 2010 · 12 comments
Closed

Numerical noise in devel/sage/sage/symbolic/constants_c.pyx #8374

sagetrac-drkirkby mannequin opened this issue Feb 26, 2010 · 12 comments

Comments

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Feb 26, 2010

== The computer hardware & software ==

  • Sun Blade 1000
  • 2 x 900 MHz UltraSPARC III+ CPUs
  • 2 GB RAM
  • Solaris 10 03/2005 - the first release of Solaris 10.

== The Sage software ==
Sage 4.3.3 with various patches to get it to compile on Solaris. (The notebook is not working properly though).

== The test failures ==

**********************************************************************
File "/export/home/drkirkby/sage-4.3.3/devel/sage/sage/symbolic/constants_c.pyx", line 195:
    sage: float(e)
Expected:
    2.7182818284590451
Got:
    2.7182818284590455
**********************************************************************
File "/export/home/drkirkby/sage-4.3.3/devel/sage/sage/symbolic/constants_c.pyx", line 197:
    sage: e.__float__()
Expected:
    2.7182818284590451
Got:
    2.7182818284590455
**********************************************************************

This failure on SPARC when displaying E has been seen before.

Component: porting: Solaris

Author: David Kirkby

Reviewer: Mitesh Patel, Jaap Spies

Merged: sage-4.3.4.alpha1

Issue created by migration from https://trac.sagemath.org/ticket/8374

@sagetrac-drkirkby sagetrac-drkirkby mannequin added this to the sage-4.3.4 milestone Feb 26, 2010
@sagetrac-drkirkby sagetrac-drkirkby mannequin self-assigned this Feb 26, 2010
@sagetrac-drkirkby

This comment has been minimized.

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Feb 26, 2010

comment:2

The attached patch fixes these two failures.

kirkby@redstart:~/sage-4.3.3$ ./sage -t devel/sage/sage/symbolic/constants_c.p
sage -t  "devel/sage/sage/symbolic/constants_c.pyx"
         [65.4 s]

----------------------------------------------------------------------
All tests passed!
Total time for all tests: 65.4 seconds
drkirkby@redstart:~/sage-4.3.3$
yxkirkby@redstart:~/sage-4.3.3$ ./sage -t devel/sage/sage/symbolic/constants_c.py
sage -t  "devel/sage/sage/symbolic/constants_c.pyx"
         [77.5 s]

----------------------------------------------------------------------
All tests passed!
Total time for all tests: 77.5 seconds

An optional test, which currently expoects the same value of e has also been changed.

The patch, which will be attached shortly, also has some notes showing

  • A high precision value of e
  • The IEEE 754 value
  • The correctly rounded result
  • The value given on a Sun Blade 1000 with SPARC processors.

Dave

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Feb 26, 2010

Mercurial patch

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Feb 26, 2010

comment:3

Attachment: 8374-numerical-noise.patch.gz

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Feb 26, 2010

Author: David Kirkby

@qed777
Copy link
Mannequin

qed777 mannequin commented Mar 3, 2010

comment:4

I've left a review comment at #8375.

@qed777
Copy link
Mannequin

qed777 mannequin commented Mar 3, 2010

Reviewer: Mitesh Patel

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Mar 3, 2010

Attachment: 8374-numerical-noise.2.patch.gz

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Mar 3, 2010

comment:5

I've addressed the spelling & grammar errors in 8374-numerical-noise.2.patch I forgot to overwrite the old one, so there is now a second patch.

See also comments at #8375

@jaapspies
Copy link
Member

comment:6

Replying to @sagetrac-drkirkby:

I've addressed the spelling & grammar errors in 8374-numerical-noise.2.patch I forgot to overwrite the old one, so there is now a second patch.

See also comments at #8375

So a positive review.

Jaap

@jaapspies
Copy link
Member

Changed reviewer from Mitesh Patel to Mitesh Patel, Jaap Spies

@mwhansen
Copy link
Contributor

mwhansen commented Mar 6, 2010

Merged: sage-4.3.4.alpha1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants