#sympy — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #sympy, aggregated by home.social.
-
I made a little extension to my Python-based LaTeX math renderer so it can be used to draw equations and Sympy expressions directly in the terminal as sixel graphics. Install with `pip install sixelmath` and give it a try! (in a sixel-supported terminal, of course).
Source: https://github.com/cdelker/sixelmath
#sixel #python #sympy #TeXLaTeX #terminal #equations #ziamath #konsole
-
I made a little extension to my Python-based LaTeX math renderer so it can be used to draw equations and Sympy expressions directly in the terminal as sixel graphics. Install with `pip install sixelmath` and give it a try! (in a sixel-supported terminal, of course).
Source: https://github.com/cdelker/sixelmath
#sixel #python #sympy #TeXLaTeX #terminal #equations #ziamath #konsole
-
#Python : Malicious #PyPI Package called 'sympy-dev' Impersonates #SymPy, Deploys XMRig Miner on Linux Hosts:
#SoftwareSupplyChainSecurity
👇
https://thehackernews.com/2026/01/malicious-pypi-package-impersonates.html -
#Python : Malicious #PyPI Package called 'sympy-dev' Impersonates #SymPy, Deploys XMRig Miner on Linux Hosts:
#SoftwareSupplyChainSecurity
👇
https://thehackernews.com/2026/01/malicious-pypi-package-impersonates.html -
I don't know why I haven't used sympy before. I think I looked into it around 10 years ago, and I didn't appreciate the potential at the time. From playing around with it today, it's a capable symbolic math library. The documentation is rich as well. I really like it!
https://www.sympy.org/en/index.html1/n
-
I don't know why I haven't used sympy before. I think I looked into it around 10 years ago, and I didn't appreciate the potential at the time. From playing around with it today, it's a capable symbolic math library. The documentation is rich as well. I really like it!
https://www.sympy.org/en/index.html1/n
-
The hermite function f(x)=3x²-2x³ (basis of smoothstep) is a mix of the in and out easing of x²:
>>> a,b,x = symbols('a b x', real=True)
>>> mix = a*(1-x)+b*x
>>> f_in = x**2
>>> f_out = 1-f_in.subs({x:1-x})
>>> f_in_out = mix.subs({a:f_in, b:f_out, x:x}).simplify()
>>> f_out_in = mix.subs({a:f_out, b:f_in, x:x}).simplify()
>>> hermite = 3*x**2-2*x**3
>>> hermite.simplify() == f_in_out
True -
The hermite function f(x)=3x²-2x³ (basis of smoothstep) is a mix of the in and out easing of x²:
>>> a,b,x = symbols('a b x', real=True)
>>> mix = a*(1-x)+b*x
>>> f_in = x**2
>>> f_out = 1-f_in.subs({x:1-x})
>>> f_in_out = mix.subs({a:f_in, b:f_out, x:x}).simplify()
>>> f_out_in = mix.subs({a:f_out, b:f_in, x:x}).simplify()
>>> hermite = 3*x**2-2*x**3
>>> hermite.simplify() == f_in_out
True -
CW: mild spoilers for Advent of Code 2023 Day 24
Still writing my #AdventOfCode explainer #blog . To make it easier to explain the #algebra of one puzzle, I'm using #SymPy in as succinct and limited a way I can.
-
CW: mild spoilers for Advent of Code 2023 Day 24
Still writing my #AdventOfCode explainer #blog . To make it easier to explain the #algebra of one puzzle, I'm using #SymPy in as succinct and limited a way I can.
-
Making Math Less Stressful with a Python Super-Calculator https://hackaday.com/2025/10/26/making-math-less-stressful-with-a-python-super-calculator/ #WolframMathematica #datavisualization #SoftwareHacks #matplotlib #Seaborn #Pandas #python #maple #numpy #scipy #SymPy
-
Making Math Less Stressful with a Python Super-Calculator https://hackaday.com/2025/10/26/making-math-less-stressful-with-a-python-super-calculator/ #WolframMathematica #datavisualization #SoftwareHacks #matplotlib #Seaborn #Pandas #python #maple #numpy #scipy #SymPy
-
Making Math Less Stressful with a Python Super-Calculator - In a recent write-up, [David Delony] explains how he built a Wolfram Mathematica-l... - https://hackaday.com/2025/10/26/making-math-less-stressful-with-a-python-super-calculator/ #wolframmathematica #datavisualization #softwarehacks #matplotlib #seaborn #pandas #python #maple #numpy #scipy #sympy
-
Making Math Less Stressful with a Python Super-Calculator - In a recent write-up, [David Delony] explains how he built a Wolfram Mathematica-l... - https://hackaday.com/2025/10/26/making-math-less-stressful-with-a-python-super-calculator/ #wolframmathematica #datavisualization #softwarehacks #matplotlib #seaborn #pandas #python #maple #numpy #scipy #sympy
-
@hisold Citing a plain website or GitHub repo is kinda unprofessional. Many widespead software packages have a publication that is well citable, e.g. #sympy has this one with a proper DOI: https://doi.org/10.7717/peerj-cs.103, same for #numpy, #scipy, #matplotlib, etc. Some have at least a #Zenodo entry (with a DOI) to be properly citable. #PlatformIO apparently has none of those.
-
@hisold Citing a plain website or GitHub repo is kinda unprofessional. Many widespead software packages have a publication that is well citable, e.g. #sympy has this one with a proper DOI: https://doi.org/10.7717/peerj-cs.103, same for #numpy, #scipy, #matplotlib, etc. Some have at least a #Zenodo entry (with a DOI) to be properly citable. #PlatformIO apparently has none of those.
-
Earn money working on open source software #oss! New project just posted: help make wrappers to connect Symbolics.jl to SymPy. $300 bounty. Information for signing up for the #SciML small grants program are contained in the link:
https://sciml.ai/small_grants/#create_wrapper_functions_to_sympy_for_symbolicsjl_300
-
Earn money working on open source software #oss! New project just posted: help make wrappers to connect Symbolics.jl to SymPy. $300 bounty. Information for signing up for the #SciML small grants program are contained in the link:
https://sciml.ai/small_grants/#create_wrapper_functions_to_sympy_for_symbolicsjl_300
-
SymPy in Julia is actually awesome! It feels more ergonomic to use in Pluto notebook than the native Python package does in Jupyter, which is the opposite of what I expected.
-
SymPy in Julia is actually awesome! It feels more ergonomic to use in Pluto notebook than the native Python package does in Jupyter, which is the opposite of what I expected.
-
The interactive calculation sheet for #engineering, based on #emacs, #orgmode, #texlatex and #sympy is available in English [1], although the blog article is in German [2]. The template is also in English [3].
#Orgmode is so impressive, you could use #maxima, #octave, #gnuplot, #graphviz and almost 40 other languages with all their libraries right out of the box [4].
Have fun!
[1] https://vennemann-online.de/flossblog/downloads/eng.pdf
[2] https://vennemann-online.de/flossblog/post20250208_pencilandpaper.html
[3] https://vennemann-online.de/flossblog/downloads/org_eng.zip
[4] https://orgmode.org/worg/org-contrib/babel/languages/index.html -
I like to do math, small prototypes and other experimenting with Python in Jupyter notebooks. NumPy, SciPy, SymPy and Matplotlib have been very handy.
But recently Python was too slow for what I was doing and I had trouble juggling Numpy arrays like I often have (it is required for speed). I know some #Rust so I decided to give #evcxr a go because it has a Jupyter kernel. And omg, I wasn't disappointed! It was mindbogglingly fast compared to what I'm used to and it also made the hard part of my code way easier to get right.
However, I only needed math functions provided by std this time. Now I'm trying to figure out if there are science Rust libs that are convenient enough to replace most Python in my notebooks. I know it's a fragmented space, but maybe one could already gather a comprehensive collection of crates manually.
Any recommendations?
-
I like to do math, small prototypes and other experimenting with Python in Jupyter notebooks. NumPy, SciPy, SymPy and Matplotlib have been very handy.
But recently Python was too slow for what I was doing and I had trouble juggling Numpy arrays like I often have (it is required for speed). I know some #Rust so I decided to give #evcxr a go because it has a Jupyter kernel. And omg, I wasn't disappointed! It was mindbogglingly fast compared to what I'm used to and it also made the hard part of my code way easier to get right.
However, I only needed math functions provided by std this time. Now I'm trying to figure out if there are science Rust libs that are convenient enough to replace most Python in my notebooks. I know it's a fragmented space, but maybe one could already gather a comprehensive collection of crates manually.
Any recommendations?
-
New #python #physics video - building a 3D animation of a half-atwood with a spring using #Lagrangian mechanics and #sympy (of course #vpython too)
-
New #python #physics video - building a 3D animation of a half-atwood with a spring using #Lagrangian mechanics and #sympy (of course #vpython too)
-
I recently read a paper by Kleshnina and others and used it to teach myself some evolutionary game theory techniques.
This is a little obscure, so I'll thread below about why this topic matters for humans and the environment 🧵
https://nadiah.org/2024/11/20/kleshnina_2023
#GameTheory #PrisonersDilemma #iteratedGame #cooperation #EvolutionOfCooperation #Z3 #pyeda #networkx #sympy #SageMath #sustainability
-
I recently read a paper by Kleshnina and others and used it to teach myself some evolutionary game theory techniques.
This is a little obscure, so I'll thread below about why this topic matters for humans and the environment 🧵
https://nadiah.org/2024/11/20/kleshnina_2023
#GameTheory #PrisonersDilemma #iteratedGame #cooperation #EvolutionOfCooperation #Z3 #pyeda #networkx #sympy #SageMath #sustainability
-
A math problem:
Variables: a, b, c, d, e.
Values: 2, 5, 13, 14, 15.
Constraints:
1. a is a multiple of b.
2. d is a factor of a.
3. e - b = c.
Which variable holds which value?
I can't find the solution.Today's math problem courtesy of a 12 year old upset with his "unsolvable" homework. I'm stumbled too.
Can #sympy be wrangled to solve this sort of problems? Can't see where to limit the values each variable can take.
-
A math problem:
Variables: a, b, c, d, e.
Values: 2, 5, 13, 14, 15.
Constraints:
1. a is a multiple of b.
2. d is a factor of a.
3. e - b = c.
Which variable holds which value?
I can't find the solution.Today's math problem courtesy of a 12 year old upset with his "unsolvable" homework. I'm stumbled too.
Can #sympy be wrangled to solve this sort of problems? Can't see where to limit the values each variable can take.
-
#Switch to #opensource solutions:
Windows: #Linux
Photoshop: #Gimp 3.0-rc
Illustrator: #Inkscape
PremierePro: #Kdenlive, #Shotcut
Office/Acrobat: #OnlyOffice, #LibreOffice
Maya: #Blender
Media: #VLC
Unity: #Godot
ToonBoom: #SynfigStudio, #Pencil2D
InDesign: #Scribus
Nuke: #Natron
Procreate: #Krita
After Effects: #Friction
Mathematica: #SageMath, #SymPy
MatLab: #GnuOctave
Audition: #Audacity
Autocad: #FreeCAD, #QCad
Ableton: #Ardour, #LMMS (daily build)
Lightroom: #DarkTable, #RawTherapee -
#Switch to #opensource solutions:
Windows: #Linux
Photoshop: #Gimp 3.0-rc
Illustrator: #Inkscape
PremierePro: #Kdenlive, #Shotcut
Office/Acrobat: #OnlyOffice, #LibreOffice
Maya: #Blender
Media: #VLC
Unity: #Godot
ToonBoom: #SynfigStudio, #Pencil2D
InDesign: #Scribus
Nuke: #Natron
Procreate: #Krita
After Effects: #Friction
Mathematica: #SageMath, #SymPy
MatLab: #GnuOctave
Audition: #Audacity
Autocad: #FreeCAD, #QCad
Ableton: #Ardour, #LMMS (daily build)
Lightroom: #DarkTable, #RawTherapee -
En esta entrada del blog revisamos como solucionar analíticamente y numéricamente la ecuación para el viento solar en ausencia de campo magnético, como muestra en el artículo original #Parker como primer soporte de su existencia. La solución analítica la hacemos con #SymPy, un paquete de álgebra computacional y para la parte numérica aplicamos el método de Runge Kutta orden 4 #Python
https://www.cosmoscalibur.com/es/blog/2024/espiral-de-parker-con-python/
-
En esta entrada del blog revisamos como solucionar analíticamente y numéricamente la ecuación para el viento solar en ausencia de campo magnético, como muestra en el artículo original #Parker como primer soporte de su existencia. La solución analítica la hacemos con #SymPy, un paquete de álgebra computacional y para la parte numérica aplicamos el método de Runge Kutta orden 4 #Python
https://www.cosmoscalibur.com/es/blog/2024/espiral-de-parker-con-python/
-
Esto se ve bonito. Preparando una entrada en el blog sobre la #EspiraldeParker #VientoSolar, aplicando la solución analítica con #SymPy. Ahora estoy revisando porque el caso numérico no me funciona en el tramo subsónico
#Python #Matplotlib -
Esto se ve bonito. Preparando una entrada en el blog sobre la #EspiraldeParker #VientoSolar, aplicando la solución analítica con #SymPy. Ahora estoy revisando porque el caso numérico no me funciona en el tramo subsónico
#Python #Matplotlib -
More irritating is that I realized afterwards that I needed $(2^{256})^{(2^{32}-1)} = 2^{1099511627520}$ anyway... I'd forgotten to subtract the one.
And when you want such answers, as I should have remembered earlier, #Sympy (not the built in int class) is your friend.
-
[New Blog Post] Gauss and Groebner Egraphs: Intrinsic Linear and Polynomial Equations https://philipzucker.com/linear_grobner_egraph/ #logic #egraph #sympy
-
Scientific Python Lectures
#Tutorials on the scientific #Python ecosystem: a quick introduction to central tools and techniques. The different chapters each correspond to a 1 to 2 hours course with increasing level of expertise, from beginner to expert.
https://lectures.scientific-python.org/
#compsci #machinelearning #ComputerScience
#NumPy #Matplotlib #SciPy #SymPy #Scikit_Learn -
Here is a #JOSS paper about the main reusable thing from my #PhD: the :python: Python package PARMESAN 🧀 for meteorological turbulence and timeseries analysis:
https://doi.org/10.21105/joss.06127
PARMESAN integrates with #pandas, uses #sympy-based equations and handles units with pint.
I really like the approach of @joss: fully open infrastructure, automated workflows, everything feels really smooth. 👍
-
Our article by @nobodyinperson on #PARMESAN our #Python package for meteorological turbulence and timeseries analysis has been published to @joss! 🥳
https://doi.org/10.21105/joss.06127
PARMESAN integrates with #pandas, uses #sympy-based equations and handles units with pint.
-
Until last week I supervised a weekly online lecture on :python: #Python for #engineering at @tudresden
Now I am thinking on continuing this as a public Q&A format.
Interested? → ⭐ this post.
Apart from vanilla Python my main competence is #NumPy #SciPy #SymPy and #Matplotlib
For those understanding German: I co-authored a for dummies book on the topic: