Skip to main content

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


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.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

FantasyNomes-1.1-py3.9.egg (6.0 kB view details)

Uploaded Source

File details

Details for the file FantasyNomes-1.1.tar.gz.

File metadata

  • Download URL: FantasyNomes-1.1.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

Hashes for FantasyNomes-1.1.tar.gz
Algorithm Hash digest
SHA256 15df9c276812e873804201e24eca57f0e20dcc989554b95931161975185e5c1d
MD5 a6c445463ef69e37304babeadfe1d59d
BLAKE2b-256 4438c14bb5b1b3e0b52f456bea3f4f7a18307791b38bf16ccf8da64c99735ec5

See more details on using hashes here.

File details

Details for the file FantasyNomes-1.1-py3.9.egg.

File metadata

  • Download URL: FantasyNomes-1.1-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

Hashes for FantasyNomes-1.1-py3.9.egg
Algorithm Hash digest
SHA256 4fd52dc4496f1cb815f1c31cd526d4b65d58ca039329bd58d375f974e54c5f04
MD5 1e9561c3699099ee45a825576952b397
BLAKE2b-256 389fdc2c2c191f5ac52968e0037f3f84f6b5ab6e944717ef994d73234ceef90d

See more details on using hashes here.

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