Question: Understanding how Units[TestDimensions] works.

I have multiple questions on how Units[TestDimensions] works from reading the Maple documentation. I will use this thread to ask them.

My first question regards the difference between Unit(expr) and units inserted using shortcut (CMD+SHIFT+U) on a mac?

restart

Automatically loading the Units[Simple] subpackage
 

 

What is the difference between the following two commands?

Units:-TestDimensions(x*Unit('m')+y*Unit('s'), output = dimensions)

{x::(length^(-1+_t3[7, 1])*mass^_t3[7, 2]*time^_t3[7, 3]*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10]), y::(length^_t3[7, 1]*mass^_t3[7, 2]*time^(-1+_t3[7, 3])*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10]), (x*Units:-Unit(m))::(length^_t3[7, 1]*mass^_t3[7, 2]*time^_t3[7, 3]*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10]), (y*Units:-Unit(s))::(length^_t3[7, 1]*mass^_t3[7, 2]*time^_t3[7, 3]*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10]), (x*Units:-Unit(m)+y*Units:-Unit(s))::(length^_t3[7, 1]*mass^_t3[7, 2]*time^_t3[7, 3]*electric_current^_t3[7, 4]*thermodynamic_temperature^_t3[7, 5]*amount_of_substance^_t3[7, 6]*luminous_intensity^_t3[7, 7]*currency^_t3[7, 8]*amount_of_information^_t3[7, 9]*logarithmic_gain^_t3[7, 10])}

(1)

Units:-TestDimensions(2*Unit(m)+y*Unit(s), output = dimensions)

{y::(length/time), (y*Units:-Unit(s))::length, (2*Units:-Unit(m)+y*Units:-Unit(s))::length}

(2)

NULL

I think my question is what is the difference between inserting units using CMD+SHIFT+U on a mac, which generates the units as seen in the first command, versus using Unit(expr) as in the second version of the command?

Download Units_-_TestDimensions.mw

Please Wait...