ArrayTools - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Low-level Manipulation : Matrices, Vectors, and Arrays : ArrayTools : ArrayTools/Append

ArrayTools

  

Append

  

append an element to an Array

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Append(A,expr,opts)

Parameters

A

-

: Array or Vector

expr

-

: expression to append

opts

-

: (optional) inplace=true or inplace=false

Options

• 

inplace : keyword option of the form inplace=true or inplace=false. This specifies whether the append operation should reuse the existing Array or generate a new Array.  Its default value is true.

Description

• 

The Append(A,expr) command appends the expression expr to the end of the Vector or the 1-D Array, A.

• 

When inplace=false is specified, the append operation allocates a new Array and does not modify the existing one.  Otherwise, the existing object is modified.

• 

This function is part of the ArrayTools package, so it can be used in the short form Append(..) only after executing the command with(ArrayTools). However, it can always be accessed through the long form of the command by using ArrayTools[Append](..).

Examples

withArrayTools:

AArray2,3,5

A:=235

(1)

AppendA,1x

2351x

(2)

AppendA,sinx

2351xsinx

(3)

v1,2x

v:=12x

(4)

Appendv,3x2,inplace=false

12x3x2

(5)

v

12x

(6)

Compatibility

• 

The ArrayTools[Append] command was introduced in Maple 18.

• 

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

See Also

ArrayTools

ArrayTools[Concatenate]

ArrayTools[Extend]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam