std - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


type/stdlib

test for a standard library object

type/std

test for a standard object

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, 'stdlib')

type(expr, 'std')

Parameters

expr

-

expression

Description

• 

The type(expr, 'stdlib') command distinguishes user defined procedures and modules from those provided by the standard Maple library. An expression expr is of type stdlib if it is a global symbol saved in the standard repository shipped with Maple.

• 

Currently, this type is implemented by testing for the presence of a particular attribute on the expression. This attribute is given to all top-level symbols saved in the standard repository.

• 

The type(expr, 'std') command describes the name of a built-in procedure or an object of type stdlib. It is, by definition, equivalent to the (structured) type {builtin, stdlib}.

Examples

> 

type⁡sin,stdlib

true

(1)
> 

type⁡sin,std

true

(2)
> 

type⁡op,std

true

(3)
> 

type⁡op,stdlib

false

(4)
> 

type⁡2,stdlib

false

(5)
> 

type⁡Units,stdlib

true

(6)
> 

f≔s↦sin⁡scos⁡s:

> 

type⁡f,stdlib

false

(7)

Get all user defined procedures in the current session.

> 

select⁡type,anames⁡procedureminusanames⁡environment,Not⁡std

anames,f,print,streamcall

(8)

See Also

repository

type