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)

    “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)

    “We had not gone far before I was startled by seeing what I thought was an Indian encampment, covered with a red flag, on the bank, and exclaimed, “Camp!” to my comrades. I was slow to discover that it was a red maple changed by the frost.”
    —Henry David Thoreau (1817–1862)

    “Acknowledge your will and speak to us all, “This alone is what I will to be!” Hang your own penal code up above you: we want to be its enforcers!”
    —Friedrich Nietzsche (1844–1900)