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)

    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)

    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)

    Wise Draco comes, deep in the midnight roll
    Of black artillery; he comes, though late;
    In code corroborating Calvin’s creed
    And cynic tyrannies of honest kings;
    He comes, nor parlies; and the Town, redeemed,
    Gives thanks devout; nor, being thankful, heeds
    The grimy slur on the Republic’s faith implied,
    Which holds that Man is naturally good,
    And—more—is Nature’s Roman, never to be
    scourged.
    Herman Melville (1819–1891)