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:

    There are many examples of women that have excelled in learning, and even in war, but this is no reason we should bring ‘em all up to Latin and Greek or else military discipline, instead of needle-work and housewifry.
    Bernard Mandeville (1670–1733)

    It is hardly to be believed how spiritual reflections when mixed with a little physics can hold people’s attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.
    —G.C. (Georg Christoph)

    Once they came on a maple in a glade,
    Standing alone with smooth arms lifted up,
    And every leaf of foliage she’d worn
    Laid scarlet and pale pink about her feet.
    Robert Frost (1874–1963)

    ...I had grown up in a world that was dominated by immature age. Not by vigorous immaturity, but by immaturity that was old and tired and prudent, that loved ritual and rubric, and was utterly wanting in curiosity about the new and the strange. Its era has passed away, and the world it made has crumbled around us. Its finest creation, a code of manners, has been ridiculed and discarded.
    Ellen Glasgow (1873–1945)