-
Notifications
You must be signed in to change notification settings - Fork 393
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
Support expanding some functions #65
Comments
Is it better |
@MAKMED1337 Not sure, but it looks there should be another option to control the behavior around |
I think this can be solved by introducing function-level controls:
This allows us to control the behavior more precisely. E.g., users can choose the result of This also involves some caveats:
import latexify
config = latexify.Config.defaults()
config.expand_function("expit")
@latexify.with_latex(config)
def f(x):
return expit(x)
# Will generate: \mathrm{f}(x) \triangleq \frac{1}{1+\exp{(-x)}} |
List of methods in
Let me know what you think @odashi, and I'll get started on these |
I think non-elementary functions ( |
I also think our current implementation (#125) naturally solves #65 (comment) , as users can choose whether |
This is generally supported in the current implementation. We'd support individual functions in separate issues (if needed). |
Follows #63
It is good to provide a
expand_functions
boolean option to control whether some composite functions are expanded or not, e.g.:hypot(x, y)
->atan2(y, x)
->expit(x)
->The text was updated successfully, but these errors were encountered: