CommonUnits[{quantity1,quantity2,…,quantityn}]
互換性のある次元において,quantity1 から quantityn までを共通単位に変換する.
CommonUnits
CommonUnits[{quantity1,quantity2,…,quantityn}]
互換性のある次元において,quantity1 から quantityn までを共通単位に変換する.
詳細
- CommonUnitsは,入力リストの単位を次元が等しい下位区分ごとに共通単位に変換する.
- CommonUnitsは発見的なメソッドを使って入力データに最も適した単位を選ぶ.
- 通貨単位を含む操作にはインターネット接続が必要である.
例題
すべて開く すべて閉じる例 (2)
スコープ (4)
CommonUnitsをQuantityオブジェクトのリストに使う:
CommonUnits[{Quantity[3.2, "Meters"], Quantity[10, "Inches"], Quantity[7, "Feet"]}]CommonUnits[{Quantity[3.5, "Kilograms"], Quantity[3.5, "ChineseJins"], Quantity[3.5, "Pounds"]}]CommonUnitsをQuantityArrayオブジェクトに使う:
qa = QuantityArray[Transpose@{Range[100], Range[100]}, {"Meters", "Inches"}]CommonUnits[qa]CommonUnitsは,IndependentUnit指定のある数量を変換することができる:
qa = Quantity[5, "Kilo"IndependentUnit["Apples"] / "Meters" ^ 2]qb = Quantity[300, IndependentUnit["Apples"] / "Feet" ^ 2]CommonUnits[{N[qa], qb}]CommonUnitsは,混合量を変換することができる:
qa = Quantity[MixedMagnitude[{1, 80}], MixedUnit[{"Meters", "Centimeters"}]]qb = Quantity[MixedMagnitude[{5, 10}], MixedUnit[{"Feet", "Inches"}]]CommonUnits[{qa, N[qb]}]特性と関係 (3)
CommonUnitsは,共通のUnitDimensionsを持つ数量を変換する:
CommonUnits[{Quantity[0.5, "Teslas"], Quantity[200, "Gausses"], Quantity[10, "Webers"/"Dekameters"^2]}]UnitDimensions /@ {Quantity[0.5, "Teslas"], Quantity[200, "Gausses"], Quantity[10, "Webers"/"Dekameters"^2]}CommonUnitsは,共通のUnitDimensionsを持つ数量の部分集合に作用する:
CommonUnits[{Quantity[3., "Meters"/"Seconds"], Quantity[0.23, "Kilograms"], Quantity[40., "Miles"/"Hours"], Quantity[6.5, "Pounds"]}]GroupBy[{Quantity[3., "Meters"/"Seconds"], Quantity[0.23, "Kilograms"], Quantity[40., "Miles"/"Hours"], Quantity[6.5, "Pounds"]}, UnitDimensions]CommonUnitsは,無次元単位の数量を純粋な数に変換する:
{Quantity[7, "Percent"], Quantity[3, "Dozens"], Quantity[34, "PartsPerMillion"]}%//CommonUnitsテクニカルノート
-
▪
- 単位の概要
関連するガイド
-
▪
- 単位と数量
テキスト
Wolfram Research (2012), CommonUnits, Wolfram言語関数, https://reference.wolfram.com/language/ref/CommonUnits.html.
CMS
Wolfram Language. 2012. "CommonUnits." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CommonUnits.html.
APA
Wolfram Language. (2012). CommonUnits. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CommonUnits.html
BibTeX
@misc{reference.wolfram_2026_commonunits, author="Wolfram Research", title="{CommonUnits}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/CommonUnits.html}", note=[Accessed: 15-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_commonunits, organization={Wolfram Research}, title={CommonUnits}, year={2012}, url={https://reference.wolfram.com/language/ref/CommonUnits.html}, note=[Accessed: 15-September-2026]}