Skip to content

verify accuracy of fractal S(q) for small q#722

Open
pkienzle wants to merge 1 commit into
masterfrom
check-fractal-precision
Open

verify accuracy of fractal S(q) for small q#722
pkienzle wants to merge 1 commit into
masterfrom
check-fractal-precision

Conversation

@pkienzle
Copy link
Copy Markdown
Contributor

@pkienzle pkienzle commented May 1, 2026

The equations for the fractal S(q) model were complex enough that it was not immediately obvious how they would behave at small q.

This PR rearranges the equations to make the limiting cases much more apparent, and checks them against the original equations from Teixeira (1988) using 500 bit precision.

The numpy version of the equations was added to sasmodels.special so it will be available for pure python models.

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.

1 participant