rtable_split_unit - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : rtable_split_unit

rtable_split_unit

extract data and unit from a Units indexing function of an rtable

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

rtable_split_unit(A)

Parameters

A

-

rtable

Description

• 

The rtable_split_unit(A) function, where A is an Array, Matrix, or Vector, returns substructures pertaining to the Units indexing function property of A.  If A is an rtable that does not have a Units indexing function, then NULL is returned.

  

In the case that A is an Array, this is equivalent to op(1, A).

  

You can also use MatrixOptions or VectorOptions with the shape parameter to obtain the indexing functions (shape) for Matrices and Vectors, respectively.

Examples

Create a vector with each entry in meters

MVector2,iiUnitm,shape=Unitm

Mm2m

(1)

The split data will be the default unit, and the vector data without any units

rtable_split_unitM

m,12

(2)

After assigning Unit(s) into the second entry, there is no longer a single unit that can apply to every entry in the vector.  The split data will be a vector of units that matches the dimensions such that a complete point is an entry from the unit part times the entry at the same index in the data part.

M23Units

M23s

(3)

rtable_split_unitM

ms,13

(4)

Compatibility

• 

The rtable_split_unit command was introduced in Maple 2024.

• 

For more information on Maple 2024 changes, see Updates in Maple 2024.

See Also

indexfcn,Units

rtable

rtable indexing functions

rtable_indfns

rtable_set_indfn

Units:-Simple

Units:-Unit