[sympy] Advice for GSoC applicants

2025-01-26 Thread Tilo RC
I recently received an email asking for advice on applying to GSoC. I’m not a GSoC mentor, but have previously been a GSoC student. I hope that by sharing my answers here, I can help others who may have similar questions. Also, if I get anything wrong, please correct me. > I noticed the proj

[sympy] Blog post on NUMFOCUS concerns

2025-01-26 Thread Jason Moore
Hi, I was browsing Paul Invanov's blog today and came across this article: https://pirsquared.org/blog/numfocus-concerns.html We are part of NUMFOCUS, so I'd say it is important to at least be aware of this. I do not have an opinion yet myself, but wanted to share. Also, this is what attracted

[sympy] Subs and custom expression

2025-01-26 Thread Paul Royik
from sympy import Expr, log, Abs, sqrt from sympy.abc import x, u class CustomExpr(Expr): pass expr = log(Abs(sqrt(1+2/x)-1)) print(expr.subs(x, u)) print(expr.subs(x, CustomExpr(u))) The first one prints, as expected, log(|sqrt(1 + 2/u) - 1|) But the second prints something different: log(sqr

Re: [sympy] Subs and custom expression

2025-01-26 Thread Oscar Benjamin
Hi Paul, This is a bug. I assume that the result is mathematically correct but it is not a good transformation of the expression. Can you open a GitHub issue for this and link back to this mailing list thread (and send the link to the issue back here as well)? The problem is with Pow.conjugate