Skip to content

Commit

Permalink
wrapping ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarcosta committed Jun 15, 2024
1 parent 920d48d commit 3489f70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flint/types/acb_theta.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def acb_theta(acb_mat z, acb_mat tau, ulong square=False):
[ [+/- 2.43e-16] + [+/- 2.43e-16]j]
[ [+/- 2.43e-16] + [+/- 2.43e-16]j]
[ [+/- 2.43e-16] + [+/- 2.43e-16]j]
>>> prec = ctx.prec
>>> ctx.prec = 10000
>>> print(acb_mat([[1j, 0],[0,1j]]).theta(acb_mat([[0],[0]])).transpose().str(25))
[ [1.180340599016096226045338 +/- 5.95e-26] + [+/- 1.23e-3010]j]
Expand All @@ -61,6 +62,7 @@ def acb_theta(acb_mat z, acb_mat tau, ulong square=False):
[ [+/- 1.23e-3010] + [+/- 1.23e-3010]j]
[ [+/- 1.23e-3010] + [+/- 1.23e-3010]j]
[ [+/- 1.23e-3010] + [+/- 1.23e-3010]j]
>>> ctx.prec = prec
"""
g = tau.nrows()
Expand Down

0 comments on commit 3489f70

Please sign in to comment.