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

Solaris: number of partitions broken #1339

Closed
sagetrac-mabshoff mannequin opened this issue Nov 29, 2007 · 3 comments
Closed

Solaris: number of partitions broken #1339

sagetrac-mabshoff mannequin opened this issue Nov 29, 2007 · 3 comments

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Nov 29, 2007

Hello,

number of partitions is broken on Solaris/Sparc:

sage -t  devel/sage-main/sage/combinat/combinat.py          **********************************************************************
File "combinat.py", line 1869:
    sage: number_of_partitions(100000)
Expected:
    274935105697756965126775163209863526881734293159800547582031259843021473281149641730550507416607366215901578447742962489
4049306307020046179276449303351011607934245719015571894350972531246610845200636955893446424871682878983218234500926285383140
4597021307130674510624419227311238999702284408609370935531629697851569569892196108480158600569421098519
Got:
    274935105697756965126775163209863526881734293159800547582031259843021473281149641730550507416607366215901578447742962489
4049306307020046179276449303351011607934245719015571894350972531246610845200636955893446424871682878983218234500926285383140
4597021307130674510624419227311238999702284408609370935531629697851569569892196108480158600582558780007
**********************************************************************
File "combinat.py", line 1896:

but also more worringly the "small" case:

**********************************************************************
File "combinat.py", line 1924:
    sage: len([n for n in [1..500] if number_of_partitions(n) != number_of_partitions(n,algorithm='pari')])
Expected:
    0
Got:
    245
**********************************************************************

Cheers,

Michael

CC: @sagetrac-sage-combinat

Component: combinatorics

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

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.4.1 milestone Nov 29, 2007
@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Dec 26, 2007

comment:1

I suspect floating point precision issues. Didn't we do something on MaxOSX/PPC about this by lowering certain precision bounds?

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Jul 29, 2008

comment:2

The solution here is to reduce the various precisions used in the partition code. For qd we have to reduce the precision to 170 bits which indicates either a severe bug on our end or something is seriously wrong in qd.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin assigned sagetrac-mabshoff and unassigned mwhansen Jul 29, 2008
@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Feb 8, 2009

comment:3

This has been fixed by the deprecation of quaddouble via #3762 by Robert Bradshaw.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Feb 8, 2009
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.4.1, sage-3.3 Feb 8, 2009
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

1 participant