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