A python library to add list slicing capabilities and equality checking to mathematical functions.
Project description
mfunc
This library was made so that you can get a list of points of a function by list slicing.
How to Use
First, put from mfunc.mfunc import mfunc
at the top of your code.
Then, if you have already defined a function f(x)
, you can initiate an instance of an mfunc
by assigning mfunc(f)
to a variable.
Supported Features
Here is the list of supported features for an mfunc
:
-
Item retrieval and slicing (e.g.
mfunc(lambda x:x)[:5]
returns the values of the function from 0 to 4). -
The arithmetic operators
+ - * / // **
. -
A string representation (returns actual function).
Bugs
If you hae discovered a bug or have an idea, post it here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.