Close
Close window
Map - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

MTM

Map

Apply a function to a list of elements

Calling Sequence

Map(f,M1,...,Mn)

Map[k](f,M1,...,Mn)

Parameters

f

-

procedure

M1,...,Mn

-

Array, list, set, scalar

k

-

(optional) positive integer

Description

The function Map(f,M1,...,Mn) applies the function f to each element of M1, with extra arguments M2,...,Mn.

The function Map[k](f,M1,...,Mn) applies the function f to each element of Mk, with extra arguments M1,...,Mk-1,Mk+1,...,Mn.

For scalar Mk, the function Map[k](f,M1,...,Mn) is equivalent to f(M1,...,Mn).

Examples

>

withMTM:

>

MMatrix1,2,3,4:

>

Mapaa2,M

14916

(1)
>

Mapaa2,b+c

b+c2

(2)
>

Map2`+`,a,b,c,d

a+b+d,a+c+d

(3)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /