When a DimVar method results in a new DimVar that is unitless, it currently outputs a DimVar with no units. Here is an example:
Python input
print(f" sin(a) = {a.sin()}")
print(f" sin(a) units: {a.sin().base_units()}")
Output
sin(a) = 0.25881904510252074 (SI base units)
sin(a) units: (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Unless there is some added benefit, I would recommend those methods return the result as the value type. That would mean the value type can be operated on with it's native methods with an unnecessary "value()" call by the user.
Alternatively, adding all of the native methods of the value types would do the same thing.
When a DimVar method results in a new DimVar that is unitless, it currently outputs a DimVar with no units. Here is an example:
Python input
Output
Unless there is some added benefit, I would recommend those methods return the result as the value type. That would mean the value type can be operated on with it's native methods with an unnecessary "value()" call by the user.
Alternatively, adding all of the native methods of the value types would do the same thing.