{ "metadata": { "name": "sympy" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "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 and plotting support, as well as all of sympy:" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%load_ext sympyprinting\n", "%pylab inline\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')" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "\n", "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'." ] } ], "prompt_number": 1 }, { "cell_type": "markdown", "metadata": {}, "source": [ "