UliEngineering kullanarak Python'da ivmeyi m/s²'den g'ye dönüştürme

UliEngineering Python kütüphanesini kullanarak ivmeyi m/s²’den g’ye (standart yerçekimi) kolayca dönüştürebilirsiniz:

TechOverflow calculators:
You can enter values with SI suffixes like 12.2m (equivalent to 0.012) or 14k (14000) or 32u (0.000032).
The results are calculated while you type and shown directly below the calculator, so there is no need to press return or click on a Calculate button.
m/s² ⚠
ms2_to_g.py
from UliEngineering.Physics.Acceleration import *
from UliEngineering.EngineerIO import *

# 9.81 m/s²'yi g'ye dönüştür
acceleration = ms2_to_g("9.81 m/s²")
print(f"9.81 m/s² = {format_value(acceleration, 'g')}")

# 24.5 m/s²'yi g'ye dönüştür
acceleration = ms2_to_g("24.5 m/s²")
print(f"24.5 m/s² = {format_value(acceleration, 'g')}")

Örnek çıktı

ms2_to_g_output.txt
9.81 m/s² = 1.00 g
24.5 m/s² = 2.50 g

Dönüşüm standart yerçekimi değerini kullanır: g₀ = 9.80665 m/s².


Check out similar posts by category: Hesaplayıcılar Fizik Python