Articles in category python:

Don’t Trust Computer Algebra Blindly

With computer algebra systems like Mathematica, Maple, or sympy , it is all too tempting to use some single powerful command to solve a difficult problem. But without necessary care, …

Nov. 20, 2022

The Laplace Equation Solved Analytically With Python

Today’s Problem

Using only Python, solve the 2D Laplace equation

on a semi-infinite rectangular domain

with the boundary conditions

and

as well as

Solution with Python

The solution uses the …

Nov. 6, 2022

The Hydrogen Atom Solved With Python

Diogoleite asked me recently, after reading my article “ Two Lines of Python to Solve The Schrödinger Equation ”, how one could use the so-called shooting method to solve the …

Oct. 30, 2022

Piecewise Functions in Python’s sympy

In many applications, we are faced with functions that are defined piecewise. For instance, consider the function

sympy offers an easy and intuitive way to work with functions like that: …

Oct. 23, 2022