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:
“It is hardly to be believed how spiritual reflections when mixed with a little physics can hold peoples attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.”
—G.C. (Georg Christoph)
“No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
—André Breton (18961966)
“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 (18171862)
“Motion or change, and identity or rest, are the first and second secrets of nature: Motion and Rest. The whole code of her laws may be written on the thumbnail, or the signet of a ring.”
—Ralph Waldo Emerson (18031882)