Skip to content

Conversation

@yyyyx4
Copy link
Member

@yyyyx4 yyyyx4 commented Sep 28, 2025

This patch adds a simple function to approximate class numbers of imaginary-quadratic fields using the analytic class number formula. This approximation is accurate to a relative error factor of $<2$ even with comparatively low precision, making it useful in the context of class-group computations.

An obvious next step would be to generalize it to non-fundamental and/or positive discriminants. This is left for future work.

@github-actions
Copy link

github-actions bot commented Sep 28, 2025

Documentation preview for this PR (built with commit 8bf00ec; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@yyyyx4 yyyyx4 force-pushed the public/approximate_class_numbers branch from c0a616a to 5430772 Compare September 29, 2025 10:47
yyyyx4 and others added 3 commits October 7, 2025 14:08
…ing class numbers of negative fundamental discriminants
Co-authored-by: user202729 <25191436+user202729@users.noreply.github.com>
@yyyyx4 yyyyx4 force-pushed the public/approximate_class_numbers branch from 814eab3 to bd5bba8 Compare October 7, 2025 12:08
@user202729
Copy link
Contributor

I wonder if some convergence acceleration technique can improve this. But doesn't matter that much.

@yyyyx4
Copy link
Member Author

yyyyx4 commented Oct 8, 2025

Yeah, I'm also not convinced if this is the best way of doing this... But I suppose the implementation can always be switched out for something else later if the need arises. For the moment, it seems to do what it promises, and is therefore better than nothing? 🙂

vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 11, 2025
sagemathgh-40907: approximate imaginary-quadratic class numbers using analytic class number formula
    
This patch adds a simple function to *approximate* class numbers of
imaginary-quadratic fields using the analytic class number formula. This
approximation is accurate to a relative error factor of $<2$ even with
comparatively low precision, making it useful in the context of class-
group computations.

An obvious next step would be to generalize it to non-fundamental and/or
positive discriminants. This is left for future work.
    
URL: sagemath#40907
Reported by: Lorenz Panny
Reviewer(s): Lorenz Panny, user202729
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 12, 2025
sagemathgh-40907: approximate imaginary-quadratic class numbers using analytic class number formula
    
This patch adds a simple function to *approximate* class numbers of
imaginary-quadratic fields using the analytic class number formula. This
approximation is accurate to a relative error factor of $<2$ even with
comparatively low precision, making it useful in the context of class-
group computations.

An obvious next step would be to generalize it to non-fundamental and/or
positive discriminants. This is left for future work.
    
URL: sagemath#40907
Reported by: Lorenz Panny
Reviewer(s): Lorenz Panny, user202729
@vbraun vbraun merged commit 0b7384d into sagemath:develop Oct 16, 2025
24 of 25 checks passed
@yyyyx4 yyyyx4 deleted the public/approximate_class_numbers branch October 16, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants