Sympy 简明教程

SymPy Tutorial

SymPy 是一个用于符号数学的 Python 库。它的目标是成为一个功能齐全的计算机代数系统 (CAS),同时保持代码尽可能简单,以便于理解和轻松扩展。

SymPy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible.

Audience

本教程专为希望了解符号数学的 Python 程序员而设计,包括符号计算的基础知识、基本的符号运算、微积分、矩阵和一些选定的高级主题。

This tutorial is designed for python programmers who would like to get introduced to the symbolic mathematics including basics of symbolic computing, basic symbolic operations, calculus, matrices and some select advanced topics.

Prerequisites

在继续本教程之前,您应该对 Python 编程语言有很好的了解。本教程假定您有良好的数学背景。大多数示例需要低于微积分水平的知识,而有些示例需要微积分水平的知识。

Before proceeding with this tutorial, you should have a good understanding of python programming language. This tutorial assumes a decent mathematical background. Most examples require knowledge lower than a calculus level, and some require knowledge at a calculus level.