3 ms·
Appears to need a bit more robustification. >>> simplify(sqrt(x^2)) Traceback (most recent call last): File "<string>", line 1, in <module>
by chisophugis 13y ago
Appears to need a bit more robustification.
>>> simplify(sqrt(x^2))
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/base/data/home/apps/s~sympy-live-hrd/43.373169527249054993/sympy/sympy/functions/elementary/miscellaneous.py", line 110, in sqrt
return C.Pow(arg, S.Half)
File "/base/data/home/apps/s~sympy-live-hrd/43.373169527249054993/sympy/sympy/core/cache.py", line 93, in wrapper
r = func(*args, **kw_args)
File "/base/data/home/apps/s~sympy-live-hrd/43.373169527249054993/sympy/sympy/core/power.py", line 119, in __new__
obj = b._eval_power(e)
AttributeError: 'Not' object has no attribute '_eval_power'
- krastanov 13y agoYou are using live.sympy.org. It has its own issues. The library itself works well when ran from normal python prompt.
- coherentpony 13y agoAre you sure it's x^2 and not x2? Perhaps sympy does extra foo to feel more like mathematics.
- jmgrosen 13y agox^2 in Python is x XOR 2 :) You probably want x**2