如何使用 UliEngineering 在 Python 中将转速从 Hz 转换为 rpm
你可以使用 UliEngineering Python 库轻松地将转速从 Hz(每秒转数)转换为 rpm(每分钟转数):
hz_to_rpm.py
from UliEngineering.Physics.Rotation import *
from UliEngineering.EngineerIO import *
# 将 1 Hz 转换为 rpm
speed = hz_to_rpm("1 Hz")
print(f"1 Hz = {format_value(speed, 'rpm')}")
# 将 50 Hz 转换为 rpm
speed = hz_to_rpm("50 Hz")
print(f"50 Hz = {format_value(speed, 'rpm')}")示例输出
hz_to_rpm_output.txt
1 Hz = 60.0 rpm
50 Hz = 3.00 kRPM转换使用以下公式:$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