Open Matematija opened 2 years ago
I think the stack overflow is telling you it's not supported.
The method is (I presume) meant to send besseli(0, 3)
to besseli(0, 3.0)
, but instead catches dual numbers for which there is no more specific method:
https://github.com/JuliaMath/SpecialFunctions.jl/blob/master/src/bessel.jl#L583
There are methods accepting Dual
only for certain Bessel functions:
https://github.com/JuliaDiff/DiffRules.jl/blob/master/src/rules.jl#L143-L150
Okay, that makes sense, thank you. I am still confused as to why does the second example work without a problem then.
Here is the MWE:
REPL output:
Interestingly,
works great. Am I missing something super-obvious here? (My honest apologies if I am.)
Environment: