Qurak

Do calculations with units

Voorbeeld 4 stappen, op volgorde uitgevoerd in één sessie. Elke stap is tegen de engine uitgevoerd en de uitvoer hieronder is wat hij opleverde.

Stap 1
Quantity[19.25, "Kilometers"] + Quantity[13, "Miles"]
Uitvoer
Quantity[40.171472, Kilometers]
Stap 2
Quantity[20, "Feet"] / Quantity[2.3, "Seconds"] + Quantity[9, "Meters" / "Seconds"]
Uitvoer
Quantity[38.22321122903116, Feet/Seconds]
Stap 3
N[Quantity[175, "Pounds"] / Quantity[100, "Kilograms"]]
Uitvoer
0.7937866475
Stap 4
Quantity[24, "Miles" / "Gallons"] * Quantity[16.2, "Gallons" / IndependentUnit["tank"]] * Quantity[1 / 8, IndependentUnit["tank"]]
Uitvoer
Quantity[48.599999999999994, Miles/Gallons*Gallons/IndependentUnit["tank"]*IndependentUnit["tank"]]

Gebruikte functies

Gerelateerde recepten

Alle recepten · Functiereferentie · Gebruik dit vanuit een MCP-client