Updates:
Summary: Document how to use lambdas in replace (was: Bug with replace)
Labels: -WrongResult Documentation
Comment #6 on issue 2511 by julien.r...@gmail.com: Document how to use
lambdas in replace (was: Bug with replace)
Updates:
Status: Fixed
Comment #4 on issue 2416 by smi...@gmail.com: Exponential function
exp(I*k**2*pi) simplifies to -1
http://code.google.com/p/sympy/issues/detail?id=2416
k = Symbol('k', integer=True)
exp(I*k**2*pi)
exp(I*pi*k**2)
k = Symbol('k', integer=True, odd=True)
Updates:
Owner: julien.r...@gmail.com
Comment #5 on issue 2416 by julien.r...@gmail.com: Exponential function
exp(I*k**2*pi) simplifies to -1
http://code.google.com/p/sympy/issues/detail?id=2416
For reference this was https://github.com/sympy/sympy/pull/1270
--
You received this
Updates:
Status: Started
Owner: julien.r...@gmail.com
Cc: asmeu...@gmail.com
Labels: NeedsReview
Comment #4 on issue 2662 by julien.r...@gmail.com: conjugate(x).diff(x) is
wrong
http://code.google.com/p/sympy/issues/detail?id=2662
A lot of the code assumes
Comment #3 on issue 2664 by julien.r...@gmail.com: sign(x) should reduce to
x/abs(x) when x is known to not be 0
http://code.google.com/p/sympy/issues/detail?id=2664
In https://github.com/sympy/sympy/pull/1271 sign(x).doit() reduces to
x/Abs(x).
--
You received this message because you
Comment #8 on issue 2949 by trel...@psu.edu: trig functions do not return
exact results for half angles
http://code.google.com/p/sympy/issues/detail?id=2949
I ran into a problem evaluating cos(pi/12) the other day, and came accross
this issue when trying to determine how best to proceed.
Updates:
Labels: Simplify
Comment #9 on issue 2949 by asmeu...@gmail.com: trig functions do not
return exact results for half angles
http://code.google.com/p/sympy/issues/detail?id=2949
Memoizing results is fine if it would otherwise be too slow (exponential
time). See the
Comment #5 on issue 3249 by ness...@gmail.com: Difficulty with
integrate(exp(I*x)/(1 + x**2), (x, -oo, oo))
http://code.google.com/p/sympy/issues/detail?id=3249
Here is a pull request for the evaluation problem. I will think about the
symbolics next ^^.
Status: Valid
Owner:
Labels: Type-Enhancement Quantum
New issue 3252 by ohsche...@gmail.com: Quantum Circuit Optimization with
Genetic Algorithms
http://code.google.com/p/sympy/issues/detail?id=3252
Genetic algorithms have been gaining attention as an approach to generating
new
Updates:
Status: Started
Owner: julien.r...@gmail.com
Cc: asmeu...@gmail.com
Labels: NeedsReview
Comment #4 on issue 2662 by julien.r...@gmail.com: conjugate(x).diff(x) is
wrong
http://code.google.com/p/sympy/issues/detail?id=2662
A lot of the code assumes
On Mon, Apr 30, 2012 at 11:07 AM, Aaron Meurer asmeu...@gmail.com wrote:
Ah, I forgot about replace. Any thoughts on something like
eq.subs(psi(n, t), z**n*exp(-I*t*omega(z))) (with subs possibly
replaced with something else)?
I'm not sure what you mean by 'subs possibly replaced...'. Can you
I just mean it doesn't have to be subs that does this. It could be
some other method, like replace, or something new. I'm not sure if
such functionality belongs as a hint to subs or as a different method.
Aaron Meurer
On Mon, Apr 30, 2012 at 1:03 AM, Chris Smith smi...@gmail.com wrote:
On
On Mon, Apr 30, 2012 at 12:51 PM, Aaron Meurer asmeu...@gmail.com wrote:
I just mean it doesn't have to be subs that does this. It could be
some other method, like replace, or something new. I'm not sure if
such functionality belongs as a hint to subs or as a different method.
Not sure, but
Maybe this case isn't too bad, however. It represents old/new being
A problem with thinking this way, however, is that it may be too
complicated to wrap all the functionality of the other methods into
subs and if you only wrap a few in, the user may not become familiar
with the other methods
What I'm proposing is something that takes a complete Function, not a
callable. If an interface requires the use of lambda to work, it's
probably not a good one, especially in SymPy, where we have symbolic
expressions.
I want something like
eq = 1 - cos(x) + cos(2*x)
eq.funcreplace(cos(x), 1 -
def fsub(e, a, f):
... args = a.args
... if not all(ai.is_Symbol for ai in args):
... raise ValueError('arguments of function must be symbols')
... return e.replace(a.func, lambda *args: f)
...
Expr.fsub = fsub
(1+f(x,y)).fsub(f(a,b), a+b)
a + b + 1
Maybe this detection could be part of
Hi,
In browsing around I have come upon the tutorial page, where it refers
to sympy-0.5.12. How does one change that? I can do it if it is ok.
I would change it to 0.7.1 if that is ok. Will a new version of sympy
be released in the next month or so? If so, one might as well wait
until that is
Am 30.04.2012 19:03, schrieb Comer Duncan:
Hi,
In browsing around I have come upon the tutorial page, where it refers
to sympy-0.5.12. How does one change that?
It's an image, so you'd need to take a screenshot of the download page
and crop it to the desired detail.
Then upload the cropped
Based on Chris's previous examples, it looks like you can just create
a numbered_symbols generator from the start and pass that in each
time. Because it is a generator, it will keep track of the symbols
count as long as you use the same object.
Aaron Meurer
On Thu, Apr 19, 2012 at 2:49 AM,
19 matches
Mail list logo