-
Notifications
You must be signed in to change notification settings - Fork 53
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
Implement special functions: erf, erfc, etc. #285
Comments
Thanks for reaching out! The basic approach to implement the Taylor series of any function begins on the differential equation that the function satisfies. The equation is solved by assuming that the solution has a polynomial (Taylor) expansion, and the coefficients of that polynomial are obtained recursively. The initial condition of the differential equation is related to the value of the function you are interested at the point around which you want to Taylor expand. See the docs here for more details. My recommendation is that, as an exercise, you try to obtain the coefficients of If you do not want to implement the most general form, implement the Taylor series around 0 for I hope this helps. |
The derivative of https://en.wikipedia.org/wiki/Error_function It looks like Julia ultimately calls a C function: There are many such functions. It would be elegant if just this knowledge could be coded - is that possible? |
I do think it is possible to code it; the next two weeks I'm too busy. If you want to give it a try, I can help. |
@lbenet thank you for the quick replies! I don't have the skills to do this at the moment. But, to be clear, what I mean is is to write some sort of code generation function that takes an existing scalar function (e.g. |
How can we implement special functions, such as
erf
?returns:
MethodError: no method matching erf(::Taylor1{Float64})
The text was updated successfully, but these errors were encountered: