Skip to content

Conversation

@forfudan
Copy link
Owner

@forfudan forfudan commented Apr 1, 2025

This pull request introduces several enhancements to the BigDecimal type in the DeciMojo library, including the addition of square root functionality and related tests. The most important changes include updates to the BigDecimal struct, new exponential functions, and corresponding unit tests.

Enhancements to BigDecimal type:

New exponential functions:

  • src/decimojo/bigdecimal/exponential.mojo: Implemented the sqrt function to calculate the square root of a BigDecimal number, handling special cases and performing Newton's method iterations for precision.

Unit tests for exponential functions:

Other updates:

@forfudan forfudan merged commit 1e354a1 into main Apr 1, 2025
1 check passed
@forfudan forfudan deleted the work branch April 1, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants