Chemistry of the environment
Atmospheric Chemistry
Water Chemistry
# Example: First-order degradation
def pollutant_concentration(C0, k, t):
"""
Calculate pollutant concentration over time.
C0: Initial concentration
k: First-order rate constant (1/s)
t: Time (s)
"""
return C0 * np.exp(-k * t)
def half_life(k):
"""Calculate half-life from rate constant."""
return 0.693 / k