Math Functions¶
- betterfunctions.mathfunctions.celsius_to_fahrenheit(celsius)¶
Converts celsius to fahrenheit.
- betterfunctions.mathfunctions.distance_between_points(x1, y1, x2, y2)¶
Calculates the distance between two points.
- betterfunctions.mathfunctions.factorial(n)¶
Calculates the factorial of a number.
- betterfunctions.mathfunctions.fahrenheit_to_celsius(fahrenheit)¶
Converts fahrenheit to celsius.
- betterfunctions.mathfunctions.fibonacci(n)¶
Generates a list with the fibonacci-numbers to n.
- betterfunctions.mathfunctions.format_number(number, *, decimal_places=1, trailing_zero=False)¶
Formats a big number into a tiny, readable format.
- betterfunctions.mathfunctions.gcd(a, b)¶
Calculates the gcd of two numbers.
- betterfunctions.mathfunctions.int_to_roman(num)¶
Converts an integer to a roman number.
- betterfunctions.mathfunctions.is_prime(num)¶
Checks if a number is a prime number.
- betterfunctions.mathfunctions.lcm(a, b)¶
Calculates the lcm of two numbers.