development of a maple macro package suitable for drawing tex-pictures

56
Development of a Maple Macro Package Suitable for Drawing TeX-Pictures Masayoshi SEKIGUCHI, Satoshi YAMASHITA, & Setsuo TAKATO [email protected] Kisarazu National College of Technology, JAPAN

Upload: anka

Post on 21-Jan-2016

37 views

Category:

Documents


0 download

DESCRIPTION

Development of a Maple Macro Package Suitable for Drawing TeX-Pictures. Masayoshi SEKIGUCHI, Satoshi YAMASHITA, & Setsuo TAKATO [email protected] Kisarazu National College of Technology, JAPAN. We have developed “KETpic”. ¿What is KETpic?. KETpic is a Macro Package for Maple. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

Masayoshi SEKIGUCHI,Satoshi YAMASHITA, & Setsuo TAKATO

[email protected] National College of Technology, JAPAN

Page 2: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

2

We have developed“KETpic”

Page 3: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

3

¿What is KETpic?

Page 4: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

4

KETpic isa Macro Package

for Maple

Page 5: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

5

¿What can we dowith KETpic?

Page 6: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

6

We candraw Fine Pictures

Page 7: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

7

¿How fine?

Page 8: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

8

By “fine”, I meanAccurate & Beautiful

Page 9: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

9

In addition,Low Cost

(except for Maple)

Page 10: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

10

Because KETpic requires

LaTeX(easy)

Page 11: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

11

ButNo PostScript Printer

(economy)

Page 12: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

12

Outline of Today’s Talk

1.Motivation / Background

2.How to use KETpic

3.Demonstration

4.Other Examples

Page 13: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

13

1. Motivation or

Background

Page 14: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

14

We must createmathematical pictures

foreducation & research

Page 15: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

15

And we mustprint them

Page 16: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

16

¿Any alternative?

Page 17: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

17

We know some programs,

for instance,gnuplot, Tgif, pgplot,

WinTpic, emath(the last two are Japanese)

Page 18: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

18

We thinkthey are insufficient

because

Page 19: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

19

They are notComputer Algebra

System(CAS)

Page 20: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

20

We know many CASMaple,

MathematicamuPad,

Risa/Asir.

Page 21: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

21

Plain Maple andMathematica canoutput picturesin EPS format

Page 22: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

22

Unfortunatelytheir pictures are

POOR(Accurate but not beautiful)

Page 23: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

23

Becausetheir pictures

cannot includeMathematicalExpressions

Page 24: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

24

For Example

1

1

3cscN

k N

k

Page 25: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

25

¿Why Maple?

Page 26: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

26

Actually, we have no experiencesof muPad and Risa/Asir.

But we have a clearreason to choose

Maple.

Page 27: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

27

Maple can outputany plot datain characters

while Mathematica cannot.

Page 28: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

28

Then, we canmanipulate the

mas suitable forTpic Specials(A graphical extension for LaTeX)

Page 29: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

29

2. How to use KETpic

Page 30: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

30

(1) Install LaTeX & Maple into your computer

Page 31: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

31

(2) Download KETpic• http://www.kisarazu.ac.jp/masa/math/

• Windows ⇒ ketpicw.m

• Macintosh ⇒ ketpic.m

• Linux ⇒ one of two

• It contains “template.tex” and command references

Page 32: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

32

(3) Make a working folder in your computerIn the following demonstration,we use “C:\TexF” (“\”: back slash)

Page 33: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

33

(4) Run Maple and

Page 34: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

34

(4-1) Load KETpic

> read `C:\\TeXF/ketpicw.m`;

Page 35: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

35

(4-2) Plot pictures by usual Maple commands or by ketpic commands

> f:=plot(f(x),x=-1..2):> frmdisp(f):

Page 36: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

36

(4-3) Write down the data on your file

>openfile(`C:\\TeXF/file.tex`);>openpicture(1cm):>drawline(f):>closepicture():>closefile();

Page 37: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

37

(4-4) Usual LaTeX Printing

Page 38: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

38

¡Go Demonstration!

Page 39: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

39

First Example

Page 40: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

40

Page 41: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

41

The Other Examples

Page 42: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

42

1)Solution Curves forthe Volterra Equation

& its Vector Field.

Page 43: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

43

Page 44: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

44

2) Dirac’s Delta F.&

its Laplace Transform

Page 45: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

45

Page 46: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

46

3) Hemispheredescribing

polar coordinatesystem

Page 47: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

47

Hidden Line Elimination (1)

Page 48: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

48

4) Intersection oftwo cylinders

Page 49: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

49

Hidden Line Elimination (2)Perspective Projection

A stereogram (cross-eyed view)

Page 50: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

50

5) The LorentzAttractor

Page 51: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

51

Perspective ProjectionA stereogram (cross-eyed view)

Page 52: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

52

Summary• KETpic takesa full advantage of Maple

• Accurate, Beautiful, Easy, Economy

Page 53: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

53

Now on developing 

KETpic•Please use KETpic, and send us a bug report.

Page 54: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

54

Thank You Very Much

Muchisimas Graciaspor sus atencion

どうも有難うございました

Page 55: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

55

Page 56: Development of a Maple Macro Package Suitable for Drawing TeX-Pictures

3 Septiembre 2006 ICMS 2006, Castro Urdiales, SPAIN

56

Fine Art? – Dashed Line –