Computer algebra system in Python. This is the official account for SymPy.

Joined July 2012
The SymPy introductory tutorial. docs.sympy.org/latest/tutori…
42
2
104
SymPy Editor has been launched on github: github.com/Upabjojr/sympy-ed… It works as Jupyter widget, webapp, Android app and (soon) iOS app. #math #algebra @SymPy @PlanetSymPy
1
3
18
369
According to pypistats.org/packages/sympy, @SymPy has 6M+ downloads last day, 160M+ downloads last month. Probably most of it is CI, but still, that is a lot.
1
8
377
It used @SymPy, not NumPy. When I started SymPy almost 20 years ago, my university classmates were telling me that it could never match Mathematica, so what's the point? And now the most popular (?) LLM uses SymPy by default. That's amazing!
Interesting to see how different LLMs check if a big even number is prime: ChatGPT: Uses NumPy to test the number numerically Grok: Instantly sees it’s even → not prime
14
24
5
555
68,852
Cool to see @openai demo solving a @sympy issue (from SWE-bench) in their o3 demo today. At a glance the AI's fix looks correct (though not quite as straightforward as the true fix that was made).
2
1
2
7
2,091
I made a @SymPy GPT to play around with this. Unlike normal ChatGPT it has direct access to the latest version of SymPy (1.12) and its docs. It also tries to actually execute code whenever it can. chat.openai.com/g/g-AePkBhsF…
Introducing the GPT Store: Over 3M GPTs have been created and now you can find the most useful versions of ChatGPT for you. openai.com/blog/introducing-…
1
5
18
2,395
"Towards a new SymPy: part 1" In this first of a series of blog posts, Oscar Benjamin writes about the ongoing work to improve the performance of SymPy. oscarbenjamin.github.io/blog…
2
9
35
6,115
"Towards a new SymPy: part 2 - Polynomials" Part 2 of this series of blog posts discusses the SymPy polynomials module and how it relates to SymPy's performance oscarbenjamin.github.io/blog…
4
1,094
Tutorials @SciPyConf are in full swing! Ever want to do algebra, calculus, or advanced differential equations directly in Python? Check out the “SymPy Introductory Tutorial” co-led by our @asmeurer to learn the basics of @SymPy. cfp.scipy.org/2023/talk/LJQP…
12
49
10,082
Large numbers have fewer prime factors than you might expect. johndcook.com/blog/2023/06/2…
2
8
1
70
15,791
Hand drawn, and live demo. using @SymPy easier than typing TeX ! And we can now derivate, or integrate with @numpy_team
2
5
13
1,711
"Use Gröbner Bases To Solve Polynomial Equations" by @jingnanshi Mice blog post showing how Gröbner Bases work using SymPy. jingnanshi.com/blog/groebner…
2
6
2,188
I noticed @OpenAI uses @SymPy in their "Code interpreter" demo at their ChatGPT plugins webpage (openai.com/blog/chatgpt-plug…). I am very happy to see SymPy being used by default like this.
1
9
1
69
10,792
I integrated ChatGPT into cocalc.com as a chatbot (though much more is to come). You can just do @ and select chatgpt when chatting anywhere in cocalc (doc.cocalc.com/chat.html) and it responds. Here's an example of it knowing #sympy.
2
18
2
37
7,660
Replying to @gruntyGrunter
The maximum occurs where the derivative is zero. #SymPy code: >>> from sympy import symbols, diff, log, solveset >>> c = symbols('c') >>> diff(c ** (1 / c), c) c**(1/c)*(-log(c)/c**2 + c**(-2)) >>> solveset(-log(c)/c**2 + c**(-2), c) {E}
1
2
843
Replying to @vboykis
I give a very brief tutorial in the appendix of my book 😊
1
1
4
716
¡¡Wow!! Gracias a @Sympy logré una mejora de x2500 (sí, no es typo) en el tiempo de ejecución de una función. De paso, uno se da cuenta de la diferencia de velocidad entre Python y C nativo. PS: No programe en C, Sympy hizo la transformación "automáticamente" por mí.
1
1
8
1,667
#Python and #SymPy code for Matthew's discovery: >>> from sympy import symbols, factorial, limit, oo, N >>> n = symbols('n') >>> f = lambda n: factorial(n) / (n+1) ** n >>> limit(f(n) / f(n+1), n, oo) E >>> N(_) 2.71828182845905 (3 of 2) ;-)
2
2
1
28
7,435
>>> from sympy import factorint >>> factorint(20221124) {2: 2, 7: 2, 11: 1, 83: 1, 113: 1} >>> factorint(11242022) {2: 1, 11: 1, 511001: 1}
7
1
30