Ideally simplify() would have done the job for you. As I noted,
factor(deep=True) not working on this expression is a bug (I opened
https://github.com/sympy/sympy/issues/15669 for it).
However, note that in general, simplify() is heuristical, so there is
no guarantee that it will reduce an express
Good to know; thank you!
... but frankly I am a bit confused.
In this case, I knew what result to expect (thanks to Mathematica) and -
with your help - I finally got it. The problem is, that this solution seems
a little bit 'ad hoc' to me. What if I didn't know the result? I'd have
probably ass
Happy to learn the existence of bottom_up :)
ric
PS: I'm wondering why such a useful function is not shown in the docs...
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
The problem with this idea is that we do not, as far as I know, have
any mentors who could mentor such a project (with expertise in pyqt5).
It also means it will be difficult to maintain past the end of the
program.
One thing that I think would be more useful would be to build a web
equation edito
factor(deep=True) is supposed to do this. However, for whatever
reason, it isn't applying to the subexpression.
You can do it manually using the bottom_up function, however (and also
as ric noted, you need to set x as positive). That is a more efficient
way than calling use() several times.
>>> x
The problem is to force sympy simplyfing sqrt(x**4+4*x**2+4).
positive=True and factor at the good level work. The problem is that in my knowledge in
sympy there is no built-in "apply a function f at all levels", so I used a loop
over the levels from a high-enough on (5). I'd like to know if th
hey,i have an idea and want to share with you that .that we can make a GUI
specifically for sympy organistaion in which we can do almost all
scientific calculation that we can do in sympy module just with a click of
button and normal people dont have to memorize the syntax of sympy and it
will