-
Notifications
You must be signed in to change notification settings - Fork 392
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
Сonverting expressions or strings to latex format #179
Comments
@Iashenkovaias This is currently the expected behavior. Though it is not planned, I think the library may be able to provide some utilities to compile classes or modules with functions and other bound fields. |
@odashi, thank you very much for your answer! |
It could be provided with some effort. However, Obtaining the "correct" expression of functions that depends on outer variables (I guess this is the topic of this issue) is somewhat not possible because the value of such variables is basically indeterminate. Example: c = 42
def fn(x):
return x * c
def change_c(new_c):
global c
c = new_c In this case |
@odashi, once again thank you very much for your answer! I understand you, I’ll try to apply method you described in my project. |
@Iashenkovaias No problem! If you get some ideas to work around this, please re-open the issue and let me know about your thoughts. |
Сonverting expressions or strings to latex format
Yesterday I discovered your wonderful library and was inspired to use it in my code. However, I encountered the following problem: I work with linear equations and if I write them after return, the function works correctly. For example:
This code works correctly and returns:
\begin{array}{l} expr = -{19} \left( {4} x - {11} \right) \\ expr \end{array}
But as soon as I try to take expression from the global environment, I recieve a problem. The code is as follows:
Returns:
expr
Perhaps I haven’t fully figured out how to use arguments in this function, but I would really like to use this library in my work.
I found issue (#108), but I also didn’t understand how to use arguments and showed methods to convert string expression to latex (this option is the most suitable for me).
I'am looking forward to your reply!
The text was updated successfully, but these errors were encountered: