{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# SymPy: Open Source Symbolic Mathematics\n", "\n", "This notebook uses the [SymPy](http://sympy.org) package to perform symbolic manipulations,\n", "and combined with numpy and matplotlib, also displays numerical visualizations of symbolically\n", "constructed expressions.\n", "\n", "We first load sympy printing extensions, as well as all of sympy:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from IPython.display import display\n", "\n", "from sympy.interactive import printing\n", "printing.init_printing(use_latex='mathjax')\n", "\n", "from __future__ import division\n", "import sympy as sym\n", "from sympy import *\n", "x, y, z = symbols(\"x y z\")\n", "k, m, n = symbols(\"k m n\", integer=True)\n", "f, g, h = map(Function, 'fgh')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "