No project description provided
Project description
FantasyNomes
FantasyNomes is one python package that able to do operation like add, sub on polynome. FantasyNomes optimise the memorie space by using dict for store coef and power
Development Status :: 4 - Beta
Environment :: Console
Framework :: Jupyter :: JupyterLab
License :: OSI Approved :: Apache Software License
Natural Language :: English
Programming Language :: Python
Programming Language :: Python :: 3
Operating System :: OS Independent
Intended Audience :: Developers
Topic :: Education
Topic :: Scientific/Engineering :: Mathematics
Features
- Addition : With int, float or polynome
- Substraction :
- Multiplication :
- Division euclidienne
Installation
pip install FantasyNomes
Quickstart
>>>import FantasyNomes as fn
>>># x0, x1, x2, ... ,xn
>>>poly1 = fn.Polynome([1,1,2])
>>>poly2 = fn.Polynome([0,1])
>>>poly1
2*X^2+1*X^1+1
>>>print(poly2)
1*X^1
>>>poly2 - 4
1*X^1-4
>>>type(poly1)
FantasyNomes.polynome.Polynome
>>># degree
>>>len(poly1)
2
>>>print(poly1 * -1 )
-2*X^2-1*X^1-1
>>>div, res = poly1/poly2
>>>print(div)
2.0*X^1+1.0
>>>print(res)
1
>>>poly1==poly1
True
>>>poly1==poly2
False
>>>poly3 = fn.Polynome([1])
>>>print( poly3*poly2)
1*X^2
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.
Source Distribution
FantasyNomes-1.0.tar.gz
(7.6 kB
view details)
Built Distribution
FantasyNomes-1.0-py3.9.egg
(6.0 kB
view details)
File details
Details for the file FantasyNomes-1.0.tar.gz
.
File metadata
- Download URL: FantasyNomes-1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08314176714e5493b89a2fcdb60898865c45275c0e78d88dccf0eb031d3f46fd |
|
MD5 | 4a8b15941159aed60102531187a15fa9 |
|
BLAKE2b-256 | 39b2a956fbc5ebb3821ba2bed58b68b990baa0b73dbbfb3bb5fefe8108fa9142 |
File details
Details for the file FantasyNomes-1.0-py3.9.egg
.
File metadata
- Download URL: FantasyNomes-1.0-py3.9.egg
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ad91c755eb846c598c4087222dcef85106fd55f00c296f8fb52138df1b8ba7 |
|
MD5 | 8e6f4e4a1d767b19659827f7df026ee7 |
|
BLAKE2b-256 | aca320ea21d4aea30b4c6672d471497cc872dd536b8213b8f3cb861ac31a6fa9 |