Skip to content

Commit

Permalink
add test for fixed precision issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Nov 14, 2023
1 parent 4cabeeb commit b0079e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unitary/math/test_get_y.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,17 @@ def calculate_F_by_y0(y0):
) or abs(calculate_F_by_y0(result_get_y)) <= abs(
calculate_F_by_y0(result_original)
)


def test_get_y_revert(math_contract):
a = 1723894848
gamma = 24009999997600
x = [
112497148627520223862735198942112,
112327102289152450435452075003508
]
D = 224824250915890636214130540882688
i = 0

y_out = math_contract.newton_y(a, gamma, x, D, i)
y_out = math_contract.get_y(a, gamma, x, D, i)

0 comments on commit b0079e3

Please sign in to comment.