📅
Creation date: 1st November 2019
  • Python
  • PyPI
  • Sphinx
  • Twine
  • Wheel

Tiquations (Tinos’ Equations) was one of the first projects I published online. At the time, I had just started sixth form and was diving into Python to tackle personal projects and deepen my understanding of maths and physics. Many of these math projects required repetitive functions and constants, so I came up with the idea of creating a library to house them all in one place. That’s how Tiquations was born.

The code behind Tiquations was not the most efficiently written as I was learning while building. Through this project, I became comfortable with key programming concepts and paradigms like OOP, functions, and modules. I also got hands-on experience with technologies like Sphinx, Twine, and Wheel.

Here’s a little example of how you can use Tiquations:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from tiquations.equations import speed_dst, circle_circum_rad, time_dst
from tiquations.constants import boltzmann
from tiquations.convert import gigabytes
from tiquations.chemistry import oxygen, hydrogen
from tiquations.planets import venus

# Calculate the speed of an object given the distance and time
print(speed_dst(10, 512))  # 10 m/s & 512 m

# Calculate the average kinetic energy of a gas molecule at a temperature of 300K
Eavg = 3 / 2 * boltzmann * 300

# Convert petabytes to gigabytes
gigabytes(petabytes=4.24)  # 4.24 PB

# Get information about oxygen
oxygen.symbol
oxygen.atomic_number
oxygen.atomic_mass

# Get information about Venus
venus.eccentricity
venus.gravity
venus.orbital_period
venus.radius
venus.surface_area
venus.sun_distance
venus.volume


# Final example
def travel_time_around_venus(speed_kmh):
    radius_venus_km = venus.radius

    circumference_venus_km = circle_circum_rad(radius_venus_km)

    travel_time_hours = time_dst(circumference_venus_km, speed_kmh)

    return travel_time_hours


def molar_mass_water():
    hydrogen_mass = hydrogen.atomic_mass
    oxygen_mass = oxygen.atomic_mass

    # Calculate the molar mass of water (H2O)
    water_molar_mass = (2 * hydrogen_mass) + oxygen_mass

    return water_molar_mass