Skip to content

Commit

Permalink
more accurate second order expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorStoneAstro committed Jan 17, 2025
1 parent c438e9f commit 382b405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caustics/lenses/func/tnfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _F_tnfw(x):
torch.where(
x > 1 + 1e-2,
torch.arccos(1 / x_gt1) / (x_gt1**2 - 1.0).sqrt(),
1 - 2 * (x - 1) / 3 + 5 * (x - 1) ** 2 / 9, # where: x == 1
1 - 2 * (x - 1) / 3 + 7 * (x - 1) ** 2 / 15, # where: x == 1
),
)

Expand Down

0 comments on commit 382b405

Please sign in to comment.