1 / 9

October 14 th Lecture

October 14 th Lecture. Today’s lecture The Final Project Answers to PART B of Test Two More Procedures in Maple 4. A Brief Lecture on Experimental Mathematics Next week we will learn how to plot things like this. My current research. The Final Project.

cruz-harmon
Download Presentation

October 14 th Lecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. October 14th Lecture Today’s lecture TheFinal Project Answers to PART B of Test Two More Procedures in Maple 4. A Brief Lecture on Experimental Mathematics Next week we will learn how to plot things like this My current research

  2. The Final Project To pass, you just have to follow the rules. To get a good mark, you have to show some initiative and add some value. I expect 16-20 power point slides or 10-15 pages in Word which describe (using an appropriate level of mathematical text setting, prose and images) a Maple based exploration of one or more related topics. Examples A handful of the Explorations anywhere inthe Computer as Crucible Two or Three of the Ten Things to Try An essay on the History of Pi Another topic of your own choosing In each case we want to “sign off” with you on the topic before the break. Either with Matt in a Tutorial or by email or in person with me. More on the Taxicab question I asked last week www.durangobill.com/Ramanujan.html and on a generalization http://mathworld.wolfram.com/TaxicabNumber.html

  3. Procedures are just fancier functions (in Maple attachment) • Calling Sequence • proc (argseq) local nseq; global nseq; options nseq; descriptionstringseq; statseq end proc • proc (argseq)::type; local var1::type1, var2::type2, ...; global nseq; options nseq; description stringseq; statseq end proc • Parameters • argseq - the formal parameter names • type - (optional) an assertion on the type of the returned value • nseq - (optional) the names of local/global variables and the options in effect • var1,var2 - (optional) the names of local variables • type1,type2 - (optional) assertions on the types of local variables • stringseq - description lines for the procedure • statseq - the body of the procedure Part B of in Test Two

  4. Procedures are just fancier functions (in Maple attachment) • Calling Sequence • proc (argseq) local nseq; global nseq; options nseq; descriptionstringseq; statseq end proc • proc (argseq)::type; local var1::type1, var2::type2, ...; global nseq; options nseq; description stringseq; statseq end proc • Parameters • argseq - the formal parameter names • type - (optional) an assertion on the type of the returned value • nseq - (optional) the names of local/global variables and the options in effect • var1,var2 - (optional) the names of local variables • type1,type2 - (optional) assertions on the types of local variables • stringseq - description lines for the procedure • statseq - the body of the procedure Procedures in Maple

  5. Examples • > lc := proc( s, u, t, v ) • description "form a linear combination of the arguments"; • s * u + t * v • end proc; (or just end) • lc := proc (s, u, t, v) description "form a linear combination of the arguments"; s*u+t*v end proc > print( lc ); • proc (s, u, t, v) description "form a linear combination of the arguments"; s*u+t*v end proc • > lc( Pi, x, -I, y ); • See Also • envvar, error, Functions, index[procedure], kernelopts, last_name_eval, Operators, parameters, Parameter passing, Procedure options, remember, Procedure type checking, procedure[paramtype], procname, Reading and saving, arg, nargs, return, spec_eval_rules, type[procedure], type[function] Procedures in Maple

  6. Basic procedures: keeps variables local • With loops and conditional steps: • Calling Sequence • | for <name> | | from <expr> | | by <expr> | | to <expr> | | while <expr> | • do <statement sequence> end do; (or od) • OR • | for <name> | | in <expr> | | while <expr> | • do <statement sequence> end do; • (Note: Phrases located between | | are optional.) • 3. With recursive structure • 4. With more complicated arguments • 5. Using maple.ini files … best learned by example

  7. Inside Math and MathResource Both are mathematics dictionaries on Steroids: They allow you also to obtain output/draw pictures that can be dropped into Word or PowerPoint or Excel, or …. Inside Math (School) and the MathResource (University) We also saw Portrait 4 (shown below) Its manual is on M2600 webpage

  8. From Inside Math Inside Math and MathResource, II Maths dictionaries on Steroids: n. one of the five regular polyhedra, once imbued with great mystical significance: a cube, a regular tetrahedron, a regular octahedron, a regular dodecahedron, or a regular icosahedron. Johannes Kepler (1571 - 1630) was led to his discovery of the laws of planetary motion and his defence of Copernican astronomy by circum-scribing or inscribing the orbits of the five other known planets around the Platonic solids, with an inscribed or circumscribed circle representing the orbit of the Earth; the results agree with observation, allowing for eccentricity, to within approximately 5%. (OCR from MathResource)

  9. “The Crucible” AK Peters November 2008

More Related