Maple 9 Advanced Programming Guide

using maple ….. 14 Chapter 1: Procedures, variables, and the extension of Introduction to Computer ….

More PDF Content

Maple 9 Advanced Programming Guide

Preface Audience Worksheet Graphical Manual Set Conventions Customer Feedback Interface. Procedures Variables and Extending Maple Prerequisite Knowledge In This Chapter 11 Nested Procedures Scoping Rules Local Versus Global Variables The QuickSort Algorithm Example Creating a Uniform Random Number Generator 12 Procedures That Return Procedures Conveying Values Creating a Newton Iteration Example 1 Example 2 A Shift Operator 13 Local Variables and Invoking Procedures Example 1 Example 2 Procedure as a Returned Object Example 3 Example 4 Exercises 14 Interactive Input iii.

Reading Strings from the Terminal Example 1 Reading Expressions from the Terminal Example 2 Converting Strings to Expressions Extending Maple Dening New Types Exercises Neutral Operators Example 1 Exercise Extending Commands Conclusion. Programming with Modules Modules Examples Module Versus Procedure Accessing Module Exports In This Chapter 21 Syntax and Semantics The Module Denition The Module Body Module Parameters Named Modules Declarations Exported Local Variables Module Options Implicit Scoping Rules Lexical Scoping Rules Modules and Types Example A Symbolic Dierentiator 22 Records 23 Packages What Is a Package Writing Maple Packages by Using Modules The LinkedList Package Code Coverage Proling Package The Shapes Package 24 The use Statement Operator Rebinding.

Modeling Objects Priority Queues An Objectoriented Shapes Package Interfaces and Implementations Interfaces Generic Graph Algorithms Quotient Fields A Generic Group Implementation Extended Example A Search Engine Introduction to Searching Inverted Term Occurrence Indexing The Vector Space Model Term Weighting Building a Search Engine Package Latent Semantic Analysis The Search Engine Package Using the Package Conclusion. Input and Output In This Chapter 31 A Tutorial Example 32 File Types and Modes Buered Files versus Unbuered Files Text Files versus Binary Files Read Mode versus Write Mode The default and terminal Files 33 File Descriptors versus File Names 34 File Manipulation Commands Opening and Closing Files Position Determination and Adjustment Detecting the End of a File Determining File Status Removing Files 35 Input Commands Reading Text Lines from a File Reading Arbitrary Bytes from a File Formatted Input Reading Maple Statements Reading Tabular Data 36 Output Commands.

Conguring Output Parameters Using the interface Command OneDimensional Expression Output TwoDimensional Expression Output Writing Maple Strings to a File Writing Bytes to a File Formatted Output Writing Tabular Data Flushing a Buered File Redirecting the default Output Stream Conversion Commands Conversion between Strings and Lists of Integers Parsing Maple Expressions and Statements Formatted Conversion to and from Strings Notes to C Programmers Conclusion. Numerical Programming in Maple FloatingPoint Calculations In This Chapter Why Use Numerical Computations 41 The Basics of evalf 42 Hardware FloatingPoint Numbers Newtons Method Computing with Arrays of Numbers 43 FloatingPoint Models in Maple Software Floats Roundo Error 44 Extending the evalf Command Dening New Constants Dening New Functions 45 Using the Matlab Package 46 Conclusion 5 Programming with Maple Graphics Maple Plots Creating Plotting Procedures In This Chapter 51 Basic Plotting Procedures Altering a Plot 52 Programming with Plotting Library Procedures.

Plotting a Loop Exercise A Ribbon Plot Procedure 53 Maple Plot Data Structures The PLOT Data Structure Arguments Inside a PLOT Structure A Sum Plot The PLOT3D Data Structure Objects Inside a PLOT3D Data Structure 54 Programming with Plot Data Structures Writing Graphic Primitives Plotting Gears Polygon Meshes 55 Programming with the plottools Package A Pie Chart A Dropshadow Procedure Creating a Tiling A Smith Chart Exercise Modifying Polygon Meshes 56 Vector Field Plots Drawing a Vector Generating a Vector Plot Field 57 Generating Grids of Points 58 Animation Animation in Static Form Graphical Object as Input Methods for Creating Animations Two and Three Dimensions Demonstrating Physical Objects in Motion 59 Programming with Color Generating Color Tables Using Animation Adding Color Information to Plots Creating A Chess Board Plot. Code Generation 319 External Calling Using Compiled Code in Maple 319.

OpenMaple Using Maple in Compiled Code Code Generation The CodeGeneration Package Calling CodeGeneration Functions Translation Process Extending the CodeGeneration Translation Facilities Dening a Custom Translator External Calling Using Compiled Code in Maple Method 1 Calling External Functions External Denition Type Specication Scalar Data Formats Structured Data Formats Specifying Argument Passing Conventions Method 2 Generating Wrappers Additional Types and Options Structured Data Formats Enumerated Types Procedure Call Formats Call by Reference Array Options Nonpassed Arguments Argument Checking and Eciency Considerations Conversions Compiler Options Evaluation Rules Method 3 Customizing Wrappers External Function Entry Point Inspecting Automatically Generated Wrappers External API System Integrity OpenMaple Using Maple in Compiled Code Interface Overview Callback Functions Maple Online Help Database Technical Issues File Structure Building the Sample Program Conclusion. A Internal Representation and Manipulation.

Internal Organization Components Internal Functions Flow of Control A2 Internal Representations of Data Types Logical AND Assignment Statement Binary Object Break Statement Name Concatenation Complex Value Communications Control Structure Type Specication or Test Debug Equation or Test for Equality Error Statement Expression Sequence FloatingPoint Number ForWhile Loop Statement Foreign Data Function Call Garbage Hardware Float If Statement Logical IMPLIES Not Equal or Test for Inequality Negative Integer Positive Integer Less Than or Equal Less Than Lexically Scoped Variable within an Expression List Local Variable within an Expression Member Module Denition Module Instance Identier Next Statement Logical NOT Logical OR Procedure Parameter within an Expression.

x Contents Power Procedure Denition Product Quotient Power Range Rational Read Statement Return Statement Rectangular Table Save Statement Series Set Statement Sequence Stop Maple String Sum Dierence Table Table Reference Try Statement Unevaluated Expression Use Statement Logical XOR Polynomials with Integer Coecients A3 The Use of Hashing in Maple Basic Hash Tables Dynamic Hash Tables The Simplication Table The Name Table Remember Tables Maple Language Arrays and Tables Maple Language Rectangular Tables A4 Portability Index modulo.

Download Maple 9 Advanced Programming Guide pdf from, 454 pages, 3724.03KB.