3. Package of linear algebra linalg

In Maple, you can perform linear algebra transformations using two packages:

  • linalg - for performing abstract calculations over matrices and vectors;
  • LinearAlgebra - work with numerical matrices.

The linalg package uses vectors and matrices based on an array array . The number of functions in the linalg package contains more than one hundred names.

In MAPLE, the vector product of two vectors and the construction of a whole vectors packet is carried out using the following programs:

> with (linalg);

                   Examples

a: = vector ([6,2,1]); b: = vector ([0, -1,2]);

[6, 2, 1]

[0, -1, 2]

c: = matadd (a, b, 2, -1);

[6, 1, 3]

norm (c, 2);

13

Construct vector image vector images

restart: with (linalg): with (plot):

a: = vector ([-5, -7, -4]): b: = vector ([-9, -10, -2]): c: crossprod (a, b): arrow ([a, b , c]):

The mixed product of three vectors in MAPLE can be executed:

> with (linalg):

a: = vector ([- 5, -7, -4]): b: = vector ([-9, -10, -2]): c: = vector ([-2, -11.3]):

dotprod (crossprod (a, b), c);

Accessibility

Font Face Font Face

Font Size Font Size

1

Text Colour Text Colour

Background Colour Background Colour

Font Kerning Font Kerning

Image Visibility Image Visibility

Letter Spacing Letter Spacing

0

Line Height Line Height

1.2

Link Highlight Link Highlight