1 / 51

CAS-aided Visualization in LaTeX documents for Mathematics Education ー Achievement of KETpic ー

CAS-aided Visualization in LaTeX documents for Mathematics Education ー Achievement of KETpic ー. M. Kaneko, T. Abe, M. Sekiguchi, Y. Tadokoro, S. Yamashita, (Kisarazu National College of Tech.) & S. Takato (Toho Univ.). Contents. 1. What is KETpic ? 2. Simple demonstration of drawing

lavina
Download Presentation

CAS-aided Visualization in LaTeX documents for Mathematics Education ー Achievement of KETpic ー

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. CAS-aided Visualizationin LaTeX documentsfor Mathematics Educationー Achievement of KETpic ー M. Kaneko, T. Abe, M. Sekiguchi, Y. Tadokoro, S. Yamashita, (Kisarazu National College of Tech.) & S. Takato (Toho Univ.)

  2. Contents 1. What is KETpic ? 2. Simple demonstration of drawing pictures using KETpic 3. Other examples 4. Examples of space curves 5. Conclusion 6. Future works

  3. What is KETpic?

  4. KETpic isMacro Package for CAS (Maple, Mathematica etc.)

  5. What can we doby using KETpic?

  6. We can drawFine Picturesin LaTeX documents.(Fine = accurate & beautiful)

  7. Usually many people use EPS. User’s document CAS EPS \includegraphics Compile User’s LaTeX text file Mathematical document The output (EPS) of CAS is inserted into the LaTeX text file by using command “includegraphics”.The above procedure fits in case of not only CAS but also various graphic softwares or Gnuplot. Also, the command of Maple and Mathematica which generates LaTeX file follows the above procedure.

  8. BUT…

  9. EPS is not satisfactory for us. • The size of file is large. • Graphics can not be corrected as we like. • Mathematical expressions (e.g. legends, accessories, hatchings,...) are poor. • What we want to do (drawing tangential line to a curve at a specified point, curves defined by implicit functions, etc. ) are not supported.

  10. SolutionSo we have developed “KETpic”.

  11. KETpic for Maple has been accomplished (v1.7). This talk is concerned with this version mainly. • Recently we have started transplanting KETpic to Mathematica. • How to get KETpic? http://www.kisarazu.ac.jp/~masa/math/ (Of course FREE) Though… Maple is NOT FREE

  12. Comparison with EPS KETpic CAS Tpic User’s document \input Compile User’s LaTeX Text file Mathematical document By using KETpic, graphical outputs of CAS are formatted to generate graphical codes (Tpic specials) and written on text files. We insert these files into LaTeX document by the command “input”.

  13. It is a Fourier series approximation of the step function \pm 1 with period twice of pi.

  14. A simple demonstrationof drawing pictures by using KETpicAn example from the convergencetheorem of Fourier series.

  15. Merit of KETpic (1) • By using CAS, we can draw accurate curves easily in the LaTeX documents. • The output of KETpic is just a text file, which is much smaller than EPS, JPEG, PDF etc. Therefore, it is easy to attach the output to E-mail.

  16. Merit of KETpic (2) • You can insert mathematical expressions at your favorite position in graphics, with the same quality as those in LaTeX text. • You can use various accessories such as hatchings, tickmarks, legends, …, so that you can give students very expressive printed matter.

  17. Other Examples Following examples are effective for math. education, and we actually use them in our classroom. chi^2 function 9-pointed circle polar coordinate asteroid tangential circles stability contour Japanese Mathematics (18C~19C) cycloid

  18. Examples ofspace curves

  19. This is the cross eyed view of the intersection of two cylinders.

  20. These are the figures of regular icosahedron. In the right figure, hidden line elimination of KETpic is used unlike the left. Skeletons like this are drawn automatically by using KETpic. You see the right figure is much more expressive than the left.

  21. This is a picture used to educate spherical polar coordinate.

  22. Mathematica version (1) Loading KETpic Get[StringJoin[“c:”,bksl[“ketpicmath.m”]]] • Calculation of numerical data setwindow[{-2*Pi,2*Pi},{-2.3,2.3}]; f=(4/Pi)*Sum[Sin[(2*k-1)*x]/(2*k-1),{k=1,N}]; N=10; g=plotdata[{f,{x,XMIN,XMAX},PlotPoints->100}];

  23. (3) Writing down the numerical data onto LaTeX file (“fig1.tex”) openfile[“e:\\Hungary/fig1.tex”]; openpicture["1cm“]: drwline[g]; closepicture[1]; closefile[];

  24. This is a picture of chaos drawn with KETpic for Mathematica.

  25. Mathematica Codes Putting 40000 points. Perhaps it is the delimitation of LaTeX and DVI.

  26. Conclusion • KETpic takes full advantage of CAS so that we can insert fine graphics into LaTeX document with reasonable efforts. • KETpic has many merits which are effective for mathematics education. Especially it is useful when the outputs are used in math classroom as printed matter.

  27. Future works • Extension to other CAS’s • Now on developing Mathematica version • And other CAS’s, especially for free, such as Risa-Asir, Scilab, … • Various and richer 3d-expression

  28. Please use KETpic! We hope KETpic is wide spread to the world.

  29. Thank you for your attention.感謝

  30. Structure of user’s document Maple file (1) Loading KETpic > read `c:\\ketpicw.m`: • Calculation of numerical data > setwindow(-2*Pi..2*Pi,-2.3..2.3): > f:=(4/Pi)*sum(sin((2*k-1)*x)/(2*k-1),k=1..N); > N:=10: > g:=plot(f,x=XMIN..XMAX,numpoints=100):

  31. Writing down the numerical data onto LaTeX file (“fig1.tex”) > openfile(`e:\\Hungary/fig1.tex`): > openpicture("1cm"): > drwline(g): > closepicture(): > closefile():

  32. LaTeX file (4) Generation of LaTeX file of graphic codes \begin{document} \input{fig1} \end{document} Then the output is the following picture:

  33. This picture of cycloid can be drawn by using do-loop and the commands “rotate” and “translate” of Maple. We believe that the educational effect of this picture is not inferior to that of animation. Also this picture has the advantage that it can be used in the form of printed matter.

  34. This picture of trochoid can be drawn by the same Maple program with only the coordinate of point substituted.

  35. Inspiring students’ imagination While seeing these pictures, some student may put up a question “How will the picture become if ellipse rotate?” Then we can give them answer by using KETpic as in the next picture.

  36. The roulette of the focus is called “Delauney curve”.

  37. This is a trace of the circle which rotates twice around the given ellipse on the outer side of it.

  38. In case of the rotation on the inner side of ellipse, the diameter of circle need to be small to a certain extent so that the rotation would not be interrupted.

  39. This shows a delicate situation. Whether safe or not safe is easily judged using the two diameters of ellipse and that of circle. Deduction of this safety condition is a good exercise for high school students.

  40. This is a picture of 9-pointed circle. The dotted circle is drawn by automatic calculation of Maple.

  41. This is a picture of circles which are tangent to each other and the two lines. To draw it, do-loop of Maple is used. Also hatching is done very easily.

  42. This figure shows an example of the graph of function given by polar coordinate. Here do-loop of Maple is effectively used.

  43. Closed chain circle The sum of the inverse for radii of dotted circles are the same as that of dashed circles.

  44. This is the case that bold circles are put side by side. Then touching circle is turned upside down. This picture seems quite different from the previous one, but essentially the same.

  45. These curves are graphs of chi^2 functions with various values of deviation.

  46. These are graphs of functions obtained by integration of the above chi^2 functions. Without using CAS, it would be impossible to draw graphics like this.

  47. Z=((x+1)^2+y^2)^(-1/2)+((x-1)^2+y^2)^(-1/2) This is contours of the Coulomb potential with two electric charges at (\pm 1,0). To draw this picture, “contourplot” is used.

  48. The width and direction of hatchings are easily handled.

More Related