Maple (software) - Examples of Maple Code

Examples of Maple Code

Sample imperative programming constructs:

myfac := proc(n::nonnegint) local out, i; out := 1; for i from 2 to n do out := out * i end do; out end proc;

Simple functions can also be defined using the "maps to" arrow notation:

myfac := n -> product( i, i=1..n );

Read more about this topic:  Maple (software)

Famous quotes containing the words examples of, examples, maple and/or code:

    “Histories are more full of examples of the fidelity of dogs than of friends.”
    —Alexander Pope (1688–1744)

    “No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
    —André Breton (1896–1966)

    “Unloved, that beech will gather brown,
    This maple burn itself away;

    Unloved, the sun-flower, shining fair,
    Ray round with flames her disk of seed,
    And many a rose-carnation feed
    With summer spice the humming air;”
    —Alfred Tennyson (1809–1892)

    “... the self respect of individuals ought to make them demand of their leaders conformity with an agreed-upon code of ethics and moral conduct.”
    —Mary Barnett Gilson (1877–?)