https://github.com/lorddarkula/polypy
Symbolic manipulation of mathematical expressions
https://github.com/lorddarkula/polypy
mathematical-expressions mathematical-functions python symbolic-manipulation
Last synced: 28 days ago
JSON representation
Symbolic manipulation of mathematical expressions
- Host: GitHub
- URL: https://github.com/lorddarkula/polypy
- Owner: LordDarkula
- License: mit
- Created: 2016-10-25T19:00:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-26T19:37:56.000Z (almost 8 years ago)
- Last Synced: 2025-01-30T12:46:29.981Z (3 months ago)
- Topics: mathematical-expressions, mathematical-functions, python, symbolic-manipulation
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# polypy
Symbolic manipulation of mathematical expressions## License
polypy is available under the MIT license. See the LICENSE file for more info. Copyright © 2016 Aubhro Sengupta.
All rights reserved.## Introduction
Polypy is a libbrary designed to store mathematical expressions symbolically,
so they can be stored and evaluated as functions at any time. It is designed to
look and feel like real mathematical notation as much as possible.## Usage
``` python
from polypy.base import x
```
To create basic functions
``` python
# Simple linear function
>>> f = 2*x
>>> f(3)
6# Quadratic function
>>> f = 3*x**2 + 2*x + 3
>>> f(1)
8```
Simple functions can be chained together to create more complex
functions.
``` python
# g = 2^2^x
>>> g = 2**2**x
>>> f = x + 3# h = 2^2^x + 3
>>> h = f(g)
```