11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.3 Maple Plotting Data Structures • 22910.501 2 3 4 5 6–0.5–1A Sum PlotYou can create procedures that directly build PLOT data structures. Forexample, given an unevaluated sum you can compute the partial sums,and place the values in a CURVES structure.> s := Sum( 1/k^2, k=1..10 );s :=10∑k=11k 2You can use the typematch command to separate the unevaluatedsum into its components.> typematch( s, ’Sum’( term::algebraic,> n::name=a::integer..b::integer ) );trueThe typematch command assigns the parts of the sum to the givennames.> term, n, a, b;1, k, 1, 10k2 You can now calculate the partial sums.> sum( term, n=a..a+2 );

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!