Search notes:

Python library: SymPy

SymPy is a Python library, written entirely in Python, for symbolic mathematics whose goal is to become a full-featured computer algebra system (CAS).
>>> import sympy
>>> sympy.sqrt(8)
2*sqrt(2)

Example: Differentiation of a polynomial function

The following function differentiates the polynomial ax2+bx+c. When run, it prints 2*a*x + b.
import sympy

x, a, b, c = sympy.symbols('x a b c')
f = a * x**2 + b * x + c
dfdx = sympy.diff(f, x)
print(dfdx)

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759612705, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/libraries/SymPy(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78