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.

Contents • viiPlotting Gears . . . . . . . . . . . . . . . . . . . . . . . . 237Polygon Meshes . . . . . . . . . . . . . . . . . . . . . . . . 2416.5 <strong>Programming</strong> with the plottools Package . . . . . . . . 243A Pie Chart . . . . . . . . . . . . . . . . . . . . . . . . . . 244A Dropshadow Procedure . . . . . . . . . . . . . . . . . . 246Creating a Tiling . . . . . . . . . . . . . . . . . . . . . . . 248A Smith Chart . . . . . . . . . . . . . . . . . . . . . . . . 250Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251Modifying Polygon Meshes . . . . . . . . . . . . . . . . . 2516.6 Vector Field Plots . . . . . . . . . . . . . . . . . . . . . . 256Drawing a Vector . . . . . . . . . . . . . . . . . . . . . . . 256Generating a Vector Plot Field . . . . . . . . . . . . . . . 2586.7 Generating Grids of Points . . . . . . . . . . . . . . . . . 266Testing the Procedures . . . . . . . . . . . . . . . . . . . . 2706.8 Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . 271Animation in Static Form . . . . . . . . . . . . . . . . . . 272Graphical Object as Input . . . . . . . . . . . . . . . . . . 273Methods for Creating Animations . . . . . . . . . . . . . . 274Two and Three Dimensions . . . . . . . . . . . . . . . . . 276Demonstrating Physical Objects in Motion . . . . . . . . 2776.9 <strong>Programming</strong> with Color . . . . . . . . . . . . . . . . . . . 278Generating Color Tables . . . . . . . . . . . . . . . . . . . 280Using Animation . . . . . . . . . . . . . . . . . . . . . . . 281Adding Color Information to Plots . . . . . . . . . . . . . 283Creating A Chess Board Plot . . . . . . . . . . . . . . . . 2866.10 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . 2877 <strong>Advanced</strong> Connectivity 289In This Chapter . . . . . . . . . . . . . . . . . . . . . . . 289Code Generation . . . . . . . . . . . . . . . . . . . . . . . 289Using Compiled Code in Maple . . . . . . . . . . . . . . . 289System Integrity . . . . . . . . . . . . . . . . . . . . . . . 2897.1 Code Generation . . . . . . . . . . . . . . . . . . . . . . . 289The CodeGeneration Package . . . . . . . . . . . . . . . . 289Calling CodeGeneration Functions . . . . . . . . . . . . . 290Translation Process . . . . . . . . . . . . . . . . . . . . . . 2917.2 Using Compiled Code in Maple . . . . . . . . . . . . . . . 293Method 1: Calling External Functions . . . . . . . . . . . 294External Definition . . . . . . . . . . . . . . . . . . . . . . 297Type Specification . . . . . . . . . . . . . . . . . . . . . . 298Scalar Data Formats . . . . . . . . . . . . . . . . . . . . . 298

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

Saved successfully!

Ooh no, something went wrong!