SymPy's profile picture. Computer algebra system in Python. This is the official account for SymPy.

SymPy

@SymPy

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

Fixado

The SymPy introductory tutorial. docs.sympy.org/latest/tutoria…


SymPy repostou

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

luismbat's tweet image. 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
luismbat's tweet image. 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


SymPy repostou

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).

asmeurer's tweet image. 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).
asmeurer's tweet image. 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).

SymPy repostou

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-AePkBhsFf-…

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/introduci…



SymPy repostou

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…

quansightai's tweet image. 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…

SymPy repostou

Large numbers have fewer prime factors than you might expect. johndcook.com/blog/2023/06/2…

AlgebraFact's tweet image. Large numbers have fewer prime factors than you might expect.

johndcook.com/blog/2023/06/2…

SymPy repostou

Hand drawn, and live demo. using @SymPy easier than typing TeX ! And we can now derivate, or integrate with @numpy_team

JupyterCon's tweet image. Hand drawn, and live demo. using @SymPy easier than typing TeX ! And we can now derivate, or integrate with @numpy_team
JupyterCon's tweet image. Hand drawn, and live demo. using @SymPy easier than typing TeX ! And we can now derivate, or integrate with @numpy_team
JupyterCon's tweet image. Hand drawn, and live demo. using @SymPy easier than typing TeX ! And we can now derivate, or integrate with @numpy_team
JupyterCon's tweet image. Hand drawn, and live demo. using @SymPy easier than typing TeX ! And we can now derivate, or integrate with @numpy_team

"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_…


SymPy repostou

I noticed @OpenAI uses @SymPy in their "Code interpreter" demo at their ChatGPT plugins webpage (openai.com/blog/chatgpt-p…). I am very happy to see SymPy being used by default like this.

OndrejCertik's tweet image. I noticed @OpenAI uses @SymPy in their "Code interpreter" demo at their ChatGPT plugins webpage (openai.com/blog/chatgpt-p…). I am very happy to see SymPy being used by default like this.

SymPy repostou

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.

wstein389's tweet image. 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.

SymPy repostou

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}


SymPy repostou

I give a very brief tutorial in the appendix of my book 😊

thomasnield76's tweet image. I give a very brief tutorial in the appendix of my book 😊

SymPy repostou

¡¡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í.

jiboncom's tweet image. ¡¡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í.
jiboncom's tweet image. ¡¡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í.

SymPy repostou

#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) ;-)


SymPy repostou

Fast way to test whether a number less than a quintillion is prime. johndcook.com/blog/2019/02/2…


SymPy repostou

>>> from sympy import factorint >>> factorint(20221124) {2: 2, 7: 2, 11: 1, 83: 1, 113: 1} >>> factorint(11242022) {2: 1, 11: 1, 511001: 1}


SymPy repostou

From a LaTeX formula to optimized code : with @SymPy , I found it was possible to automatically go from a LaTeX formatted equation through a numpy function to a JAX jit optimized function that runs 300x faster on GPU than the numpy version on CPU! Made my night & day!

Yann_Le_Du's tweet image. From a LaTeX formula to optimized code : with @SymPy , I found it was possible to automatically go from a LaTeX formatted equation through a numpy function to a JAX jit optimized function that runs 300x faster on GPU than the numpy version on CPU! Made my night & day!

Please fill out our survey about code generation in SymPy to help us understand what areas we should focus on improving as part of our work for our @cziscience grant. forms.gle/F5Ek6yQkH5fXPN…


Loading...

Something went wrong.


Something went wrong.