-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing bessel functions #673
Comments
The problem is that these functions are not generally supported in the C math library, also often not implemented in C++, either. |
They can be derived from the besselJ and besselY functions |
https://www.gnu.org/software/libc/manual/html_node/Special-Functions.html Generally they only operate on real values, so I think that won't help. Probably the table for complex in ffcx is wrong, here. |
Then the question is, should they exist in ufl? |
As the aim is to be backend (language) agnostic they would be supported if we generated C++: https://en.cppreference.com/w/cpp/numeric/special_functions/cyl_bessel_i |
I think they're very niche and could be done as an external operator if someone really needed them. |
I agree with @dham, we're around 15 years in and no one has noticed they aren't implemented, implies they are very niche. |
@jhale not that I disagree that they are niche, but the issue was reported here: https://fenicsproject.discourse.group/t/defining-a-fem-function-using-a-conditional-ufl-statement/13730/3?u=dokken I think for the reported problem, one could probably just use: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.iv.html#scipy.special.iv in interpolation with a lambda function |
We currently do not support
bessel_I
orbessel_K
functions from ufl.and
throws
The text was updated successfully, but these errors were encountered: