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 (16881744)
“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 (16701733)
“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)
“...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 (18731945)