Qurak

Do calculations with units

نمونه 4 گام، به‌ترتیب در یک نشست اجرا می‌شوند. هر گام روی موتور اجرا شده و خروجی زیر همان چیزی است که تولید کرد.

گام 1
Quantity[19.25, "Kilometers"] + Quantity[13, "Miles"]
خروجی
Quantity[40.171472, Kilometers]
گام 2
Quantity[20, "Feet"] / Quantity[2.3, "Seconds"] + Quantity[9, "Meters" / "Seconds"]
خروجی
Quantity[38.22321122903116, Feet/Seconds]
گام 3
N[Quantity[175, "Pounds"] / Quantity[100, "Kilograms"]]
خروجی
0.7937866475
گام 4
Quantity[24, "Miles" / "Gallons"] * Quantity[16.2, "Gallons" / IndependentUnit["tank"]] * Quantity[1 / 8, IndependentUnit["tank"]]
خروجی
Quantity[48.599999999999994, Miles/Gallons*Gallons/IndependentUnit["tank"]*IndependentUnit["tank"]]

توابع به‌کاررفته

دستورهای کار مرتبط

همهٔ دستورهای کار · مرجع توابع · استفاده از این در کلاینت MCP