Skip to main content

PyPI - Downloads PyPI - License PyPI - Python Version

Contents

Description
Installation
    • Windows
    • Linux/MacOS
Start Using HTAM
My Email
Change Log
    • 2.0.0
    • 1.4.0
    • 1.3.0
    • 1.2.0
    • 1.1.0
    • 1.0.0


Description

Htam is my very first coding project, it is a math Python library and it includes a lot of useful math functions.

If you run into any issue, please send me an email and i will update the package as soon as I can.

I'm still working, and always looking for improvents and changes for this package, so, if you have any idea for a future update or anything else, please let me know with an email.

If you liked my library, please consider leaving a star to my github repo, it costs just 1 minute but I'd really appreciate it.

Enjoy :)

Installation

Windows

Press the win key, type cmd and press Enter to open the Command Prompt, now type the command

> pip install htam

If pip does not work, you can try pip3

press Enter and wait until the installation is finished.

Now to assert you have htam installed, type

> py

If py does not work, you can try python or python3

and then

>>> import htam

If it does not return any error, you installed it correctly.




Linux/MacOS

Open the Terminal, now type the command

$ pip install htam

If pip does not work, you can try pip3

press Enter and wait until the installation is finished.

Now to assert you have htam installed, type

$ python3

and then

>>> import htam

If it does not return any error, you installed it correctly.


Start Using HTAM

  • execute htam.info() to see general informations about htam and all functions included
  • execute htam.info("<function_or_class_name>") to see detailed informations about that function/class and some examples
  • go on my tests folder to see some examples

My Email

cristiano.sanso.04@gmail.com


Change Log

2.0.11 (25/12/2020)

Minor Corrections




2.0.7 (25/12/2020)

Now OEIS generates all sequence's attribute when the instance is created, so getting any attribute later will take almost no time




2.0.0 (24/12/2020)

BIG UPDATE:

new class OEIS:

  • search for a sequence on https://oeis.org/ and return any attribute like description, links, comments, etc.
  • if no argument is given for the constructor, OEIS will return a random sequence from https://oeis.org/
  • WARNING: using this class for the first time may install some required missing python modules

Various Improvements:

  • "htam.div" speed of execution increased
  • "htam.prime" speed of execution extremely increased
    e.g. htam.prime(100000) took more than 6 mins before, while just 4.7 seconds now
  • "htam.primefac" speed of execution extremely increased
    e.g. htam.primefac(1299709) took more than 6 mins before, while just 0.0016 seconds now (greve)
  • some random code reduction

Other Changes:

  • Functions no more returns 'None' when arguments are not valid because it's unnecessary
  • Deleted "htam.root" because it's unnecessary since it's just 1 simple line of code
  • Deleted "htam.floor" and "htam.ceil" because they are already in the python official math library

Other Minor Corrections




1.4.1 (22/10/2020)

Minor Corrections




1.4.0 (14/10/2020)

New math function:

  • "htam.fib" >>> n-th Fibonacci number

Various Improvements:

  • "htam.primefac" speed of execution increased
  • fixed a bug in "htam.rel" that made this function return a wrong result for 0, 1 and -1
  • some random code reduction
  • removed some unnecessary variables

Other Minor Corrections




1.3.9 (04/10/2020)

Minor Corrections




1.3.0 (03/10/2020)

New math function:

  • "htam.primitive" >>> primitive root

Various Improvements:

  • now "htam.gcd" and "htam.lcm" takes how many arguments you want

Other Minor Corrections




1.2.2 (28/09/2020)

Minor Corrections




1.2.0 (27/09/2020)

New math function:

  • "htam.base" >>> base converter

Other Changes:

  • function info now includes some examples for each function

Various Improvements:

  • "htam.gcd" is now used into "htam.lcm", reducing code length
  • "htam.frac" now uses a faster method to the number of fractional digits, reducing code length
  • fixed a bug in the code of "htam.rel" and "htam.pi" that made these functions return a wrong result

Other Minor Corrections




1.1.0 (25/09/2020)

Two new math functions:

  • "htam.rel" >>> coprime checker
  • "htam.tot" >>> Euler's Totient function

Other Changes:

  • function info restyled

Various improvements:

  • "htam.pi" speed of execution increased
  • "htam.floor" function is now literally a 1-line code, maybe i'll remove it in the future
  • now some functions reuses other functions to improve overall performances.



1.0.4 (24/09/2020)

Minor Corrections




1.0.1 (24/09/2020)

Now each function returns "None" when 1 or more arguments are not valid




1.0.0 (23/09/2020)

First Release >>> 13 math functions included:

  1. "htam.floor" >>> floor
  2. "htam.ceil" >>> ceiling
  3. "htam.frac" >>> fractional part
  4. "htam.root" >>> n-th root of a number
  5. "htam.mod" >>> linear congruence solver
  6. "htam.gcd" >>> greatest common divisor
  7. "htam.lcm" >>> least common multiple
  8. "htam.div" >>> divisors of a number
  9. "htam.prime" >>> n-th prime number
  10. "htam.pi" >>> number of primes less than a given number (pi function)
  11. "htam.primefac" >>> prime factorization of a number
  12. "htam.fac" >>> factorial of a number
  13. "htam.col" >>> collatz conjecture checker

Metadata

Release files for htam 2.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for htam 2.0.11
File Size Uploaded
htam-2.0.11.tar.gz 10.9 kB Details

Release files / htam-2.0.11.tar.gz

Download URL htam-2.0.11.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b0895618f6b31e8ba7023ac0ec29a6b798230adc6fcd53c3b28b2af0ab3fcbbf
BLAKE2b-256 checksum
How to use checksums
6f4a6ddd16ec9a456be3a3f499b30df6cdbad28ca134437e711d8dde3102084e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

Release history Release notifications | RSS feed

This release

2.0.11 This release

1 release file

2.0.10

1 release file

2.0.9

1 release file

2.0.8

1 release file

2.0.7

1 release file

2.0.6

1 release file

2.0.5

1 release file

2.0.4

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.9

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page