11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.1 A Tutorial Example • 159xy := [0, 0.]A := [[0, 0.]]xy := [1, 0.8427007929]A := [[0, 0.], [1, 0.8427007929]]xy := [2, 0.995322265]A := [[0, 0.], [1, 0.8427007929], [2, 0.995322265]]xy := [3, 0.9999779095]A := [[0, 0.], [1, 0.8427007929], [2, 0.995322265],[3, 0.9999779095]]xy := [4, 0.9999999846]A := [[0, 0.], [1, 0.8427007929], [2, 0.995322265],[3, 0.9999779095], [4, 0.9999999846]]xy := [5, 1.000000000]A := [[0, 0.], [1, 0.8427007929], [2, 0.995322265],[3, 0.9999779095], [4, 0.9999999846],[5, 1.000000000]]xy := []A := [[0, 0.], [1, 0.8427007929], [2, 0.995322265],[3, 0.9999779095], [4, 0.9999999846],[5, 1.000000000], []]xy := 0> fclose("myfile2");This example starts by initializing A to be the empty list. Upon enteringthe loop, Maple reads pairs of numbers from the file.The fscanf command reads characters from a specified file, and parsesthem according to the specified format (in this case, "%d %e", indicating a

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

Saved successfully!

Ooh no, something went wrong!