Python : comment convertir une vitesse de rotation de Hz en rpm avec UliEngineering
Vous pouvez facilement convertir une vitesse de rotation de Hz (révolutions par seconde) en rpm (révolutions par minute) grâce à la bibliothèque Python UliEngineering :
hz_to_rpm.py
from UliEngineering.Physics.Rotation import *
from UliEngineering.EngineerIO import *
# Convertir 1 Hz en rpm
speed = hz_to_rpm("1 Hz")
print(f"1 Hz = {format_value(speed, 'rpm')}")
# Convertir 50 Hz en rpm
speed = hz_to_rpm("50 Hz")
print(f"50 Hz = {format_value(speed, 'rpm')}")Exemple de sortie
hz_to_rpm_output.txt
1 Hz = 60.0 rpm
50 Hz = 3.00 kRPMLa conversion utilise la formule : $rpm = Hz \times 60$
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow