-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] attempt to rewrite pow within sympy #1
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
base: main
Are you sure you want to change the base?
Conversation
|
This doesn't work yet. Stuck here when trying |
|
Ok, now I get this when I use |
|
@psharda why did we do |
| import matplotlib.pyplot as plt | ||
| from mpl_toolkits.axes_grid1 import make_axes_locatable | ||
| from matplotlib.ticker import MaxNLocator | ||
| import networkx as nx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed all of the unused imports.
| T = sp.symbols('T', positive=True) | ||
|
|
||
| redshift = sp.symbols('z', real=True) | ||
| redshift = sp.symbols('z', positive=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can assume redshift is always positive 😄
It successfully generates code for
_wD(still to be tested).It still does not combine
exp(a)*exp(b)intoexp(a+b). Sympy bug report: sympy/sympy#26846