Get Math Help

GET TUTORING NEAR ME!

(800) 434-2582

By submitting the following form, you agree to Club Z!'s Terms of Use and Privacy Policy

    Home / Get Math Help

    Module

    Usage

    Module[{x, y, ...}, expr] specifies that occurrences of the symbols x, y, ... in expr should be treated as local. Module[{x=x0, ...}, expr] defines initial values for x, ....

    Basic example

    In[1]:=f[x0_]:= Module[{x=x0}, While[x>0, x=Log[x]]; x ] In[2]:=f[2.] Out[2]=-0.366513

    Attributes

    HoldAll | Protected

    Relationships with other entities

    With | Block | DynamicModule | Unique | GeneratedParameters

    Typical ranks of usage in programs

    74th most common (1 in 1330 symbols)

    44th most common (1 in 451 symbols)

    100th most common (1 in 1180 symbols)

    History

    introduced in Version 2 (January 1991)

    Timeline

    Back to List | POWERED BY THE WOLFRAM LANGUAGE