Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mfunc-0.1.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

mfunc-0.1.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page