protected - Maple Help

type/protected

check for a protected name

 Calling Sequence type(x, protected)

Parameters

 x - any expression

Description

 • The call type(x, protected) checks to see if the expression x is a name of type protected. It returns true if x is a protected name, and false otherwise.
 • Protection is used to prevent names from being modified by the user. Most of the Maple systems names are protected by default.
 • Names can be protected with the function protect; and protection can be removed with unprotect.

Examples

 > $\mathrm{type}\left(\mathrm{sin},\mathrm{protected}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\mathrm{lhs},\mathrm{protected}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(f,\mathrm{protected}\right)$
 ${\mathrm{false}}$ (3)
 > $\mathrm{protect}\left(f\right)$
 > $\mathrm{type}\left(f,\mathrm{protected}\right)$
 ${\mathrm{true}}$ (4)