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
Htam is my very first coding project, it is a math Python library and it includes a lot of useful math functions.
I'm not working on this project anymore, however you can still contact me to suggest improvents and changes for this package.
If you liked my library, please consider leaving a star, it costs nothing but I'd really appreciate it.
Enjoy :)
Press the win key, type cmd and press Enter to open the Command Prompt, now type the command
> pip install htamIf 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
> pyIf 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.
Open the Terminal, now type the command
$ pip install htamIf 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
$ python3and then
>>> import htam
If it does not return any error, you installed it correctly.
- 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
New Update:
new class Scholar:
- perform a google search on https://scholar.google.it/ and get informations about any top result like the number of citations
Other Minor Corrections
Minor Corrections
Now OEIS generates all sequence's attribute when the instance is created, so getting any attribute later will take almost no time
Various Improvements:
htam.primespeed of execution extremely increased (again lol)
e.g.htam.prime(100000)took more than4.7seconds before, while just0.76seconds now
e.g.htam.prime(1000000)took more than150seconds before, while just7.95seconds now
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,
OEISwill 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.divspeed of execution increasedhtam.primespeed of execution extremely increased
e.g.htam.prime(100000)took more than 6 mins before, while just 4.7 seconds nowhtam.primefacspeed 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
Nonewhen arguments are not valid because it's unnecessary- Deleted
htam.rootbecause it's unnecessary since it's just 1 simple line of code- Deleted
htam.floorandhtam.ceilbecause they are already in the python official math library
Other Minor Corrections
Minor Corrections
New math function:
htam.fib>>> n-th Fibonacci number
Various Improvements:
htam.primefacspeed of execution increased- fixed a bug in
htam.relthat made this function return a wrong result for 0, 1 and -1- some random code reduction
- removed some unnecessary variables
Other Minor Corrections
Minor Corrections
New math function:
htam.primitive>>> primitive root
Various Improvements:
- now
htam.gcdandhtam.lcmcan take multiple arguments
Other Minor Corrections
Minor Corrections
New math function:
htam.base>>> base converter
Other Changes:
- function info now includes some examples for each function
Various Improvements:
htam.gcdis now used intohtam.lcm, reducing code lengthhtam.fracnow uses a faster method to the number of fractional digits, reducing code length- fixed a bug in the code of
htam.relandhtam.pithat made these functions return a wrong result
Other Minor Corrections
Two new math functions:
htam.rel>>> coprime checkerhtam.tot>>> Euler's Totient function
Other Changes:
- function info restyled
Various improvements:
htam.pispeed of execution increasedhtam.floorfunction 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.
Minor Corrections
Now each function returns None when 1 or more arguments are not valid
First Release >>> 13 math functions included:
htam.floor>>> floorhtam.ceil>>> ceilinghtam.frac>>> fractional parthtam.root>>> n-th root of a numberhtam.mod>>> linear congruence solverhtam.gcd>>> greatest common divisorhtam.lcm>>> least common multiplehtam.div>>> divisors of a numberhtam.prime>>> n-th prime numberhtam.pi>>> number of primes less than a given number (pi function)htam.primefac>>> prime factorization of a numberhtam.fac>>> factorial of a numberhtam.col>>> collatz conjecture checker