5
A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA 8/5/2014 3:40 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-001.html PostScript Trefoil • F.E.J. Linton 1 of 1 A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA Trefoil Parameterizations 8/5/2014 3:41 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-002.html PostScript Trefoil • F.E.J. Linton 1 of 1 A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA Trefoil Parameterizations 8/5/2014 3:42 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-003.html PostScript Trefoil • F.E.J. Linton 1 of 1 A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA Trefoil Parameterizations 8/5/2014 3:43 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-004.html PostScript Trefoil • F.E.J. Linton 1 of 1 A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA Trefoil Parameterizations 8/5/2014 3:44 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-005.html PostScript Trefoil • F.E.J. Linton 1 of 1 A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA Trefoil Parameterizations 8/5/2014 3:45 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-006.html PostScript Trefoil • F.E.J. Linton 1 of 1 A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA Trefoil Parameterizations 8/5/2014 3:46 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-007.html PostScript Trefoil • F.E.J. Linton 1 of 1 A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA Trefoil Parameterizations 8/5/2014 3:46 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-008.html PostScript Trefoil • F.E.J. Linton 1 of 1 A Piecewise Cubic PostScript Trefoil F.E.J. Linton Math/CS Emeritus, Wesleyan Univ., Middletown, CT, USA Trefoil Parameterizations 8/5/2014 3:47 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-009.html PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. Linton Math

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A Piecewise Cubic PostScript Trefoil — F.E.J. Linton Math

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

8/5/2014 3:40 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-001.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:41 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-002.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:42 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-003.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:43 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-004.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:44 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-005.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:45 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-006.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:46 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-007.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:46 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-008.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:47 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-009.html

PostScript Trefoil • F.E.J. Linton 1 of 1

Page 2: A Piecewise Cubic PostScript Trefoil — F.E.J. Linton Math

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:48 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-010.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:49 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-011.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:49 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-012.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

TrefoilParameterizations

8/5/2014 3:50 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-013.html

PostScript Trefoil • F.E.J. Linton 1 of 1

Begin with a fragmentof the graph ofy=|x|/√3 ,with origin, a verticaly-axis, andperpendiculars at(x0, y0)=(-3, √3)and(x3, y3)=(1.5, ½√3) ,all as marked.

8/5/2014 3:52 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-014.html

PostScript Trefoil • F.E.J. Linton 1 of 1

Sketched in red, a partof the graph of afunction y = p(x)satisfying p(-3)= √3, p'(-3)= √3, p(1.5)= ½√3,and p'(1.5)= -√3.For ...

8/5/2014 3:53 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-015.html

PostScript Trefoil • F.E.J. Linton 1 of 1

For if we rotate thesketched arc not justonce through 2π/3radians, ...

8/5/2014 3:54 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-016.html

PostScript Trefoil • F.E.J. Linton 1 of 1

For if we rotate thesketched arc not justonce through 2π/3radians, but twice, andthen ...

8/5/2014 3:55 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-017.html

PostScript Trefoil • F.E.J. Linton 1 of 1

For if we rotate thesketched arc not justonce through 2π/3radians, but twice, andthen superimpose themirror image of thatresult, ...

8/5/2014 3:56 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-018.html

PostScript Trefoil • F.E.J. Linton 1 of 1

Page 3: A Piecewise Cubic PostScript Trefoil — F.E.J. Linton Math

For if we rotate thesketched arc not justonce through 2π/3radians, but twice, andthen superimpose themirror image of thatresult, we’d have thesort of trefoil we’reafter.

8/5/2014 3:57 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-019.html

PostScript Trefoil • F.E.J. Linton 1 of 1

Now to find coefficientsa, b, c, d for a cubicpolynomial p(x)= ax3+bx2+cx+d ,satisfying p(-3)= √3, p'(-3)= √3, p(1.5)= ½√3, and p'(1.5)= -√3is standard LinearAlgebra, as is ...

8/5/2014 3:59 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-020.html

PostScript Trefoil • F.E.J. Linton 1 of 1

... rotating andreflecting its graph inthe plane.

8/5/2014 4:00 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-021.html

PostScript Trefoil • F.E.J. Linton 1 of 1

... rotating andreflecting its graph inthe plane.Fortunately, PostScriptlanguage can spareyou many matrixcalculations. For here’show PostScript drawscubic polynomials(crash course part 1):

8/5/2014 4:01 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-022.html

PostScript Trefoil • F.E.J. Linton 1 of 1

8/5/2014 4:02 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-023.html

PostScript Trefoil • F.E.J. Linton 1 of 1

In our case, we have ax=0=bx , cx=4.5 , x0=-3 ,y(t)= p(x(t)) , and y0=√3 .

8/5/2014 4:03 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-024.html

PostScript Trefoil • F.E.J. Linton 1 of 1

In our case, we have ax=0=bx , cx=4.5 , x0=-3 ,y(t)= p(x(t)) , and y0=√3 .The PostScript Bézier curve drawing process usesxn=x(nt/3) and yn=y(nt/3) , for n=0,1,2,3 . The middletwo (with n=1,2) are the so-called control points.

8/5/2014 4:04 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-025.html

PostScript Trefoil • F.E.J. Linton 1 of 1

In our case, we have ax=0=bx , cx=4.5 , x0=-3 ,y(t)= p(x(t)) , and y0=√3 .The PostScript Bézier curve drawing process usesxn=x(nt/3) and yn=y(nt/3) , for n=0,1,2,3 . The curvedeparts from (x0, y0) in the direction of (x1, y1) , andarrives at (x3, y3) from the direction of (x2, y2) .

8/5/2014 4:05 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-026.html

PostScript Trefoil • F.E.J. Linton 1 of 1

In our case, we have ax=0=bx , cx=4.5 , x0=-3 ,y(t)= p(x(t)) , and y0=√3 .The PostScript Bézier curve drawing process usesxn=x(nt/3) and yn=y(nt/3) , for n=0,1,2,3 . The curvedeparts from (x0, y0) in the direction of (x1, y1) , andarrives at (x3, y3) from the direction of (x2, y2) .The “control points” we need are easy to construct:

8/5/2014 4:06 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-027.html

PostScript Trefoil • F.E.J. Linton 1 of 1

Page 4: A Piecewise Cubic PostScript Trefoil — F.E.J. Linton Math

We already have thegraph of y=|x|/√3 , theorigin, the start and endpts (x0, y0)=(-3, √3) ,(x3, y3)=(1.5, ½√3) ,a vertical y-axis, andorthogonals at(x0, y0)=(-3, √3) and(x3, y3)=(1.5, ½√3) ,as marked.

8/5/2014 4:07 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-028.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We construct theauxiliary line segmentsthat will meet at thecontrol points overx1=-1.5 and x2=0 , thecontrol points becoming(x1, y1)=(-1.5, 2.5√3)and (x2, y2)=(0, 2√3) ,respectively.

8/5/2014 4:08 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-029.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We construct theauxiliary line segmentsthat will meet at thecontrol points overx1=-1.5 and x2=0 , thecontrol points becoming(x1, y1)=(-1.5, 2.5√3)and (x2, y2)=(0, 2√3) ,respectively. Now,crash course part 2:

8/5/2014 4:11 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-030.html

PostScript Trefoil • F.E.J. Linton 1 of 1

If PostScript’s drawing finger is pointed at (x0, y0) ,here’s how to draw the Bézier curve to (x3, y3) usingcontrol points (x1, y1) and (x2, y2) —

8/5/2014 4:12 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-031.html

PostScript Trefoil • F.E.J. Linton 1 of 1

If PostScript’s drawing finger is pointed at (x0, y0) ,here’s how to draw the Bézier curve to (x3, y3) usingcontrol points (x1, y1) and (x2, y2) — use curveto :

8/5/2014 3:34 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-032.html

PostScript Trefoil • F.E.J. Linton 1 of 1

If PostScript’s drawing finger is pointed at (x0, y0) ,here’s how to draw the Bézier curve to (x3, y3) usingcontrol points (x1, y1) and (x2, y2) — use curveto :

8/5/2014 3:32 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-033.html

PostScript Trefoil • F.E.J. Linton 1 of 1

So we must movePostScript’s writingfinger to (-3, √3) andthen perform theRPN-based PSincantation-1.5 2.5 3 sqrt mul0 2 3 sqrt mul1.5 0.5 3 sqrt mulcurvetoThe result:

8/5/2014 3:35 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-034.html

PostScript Trefoil • F.E.J. Linton 1 of 1

So we must movePostScript’s writingfinger to (-3, √3) andthen perform theRPN-based PSincantation-1.5 2.5 3 sqrt mul0 2 3 sqrt mul1.5 0.5 3 sqrt mulcurvetoThe result: (that waseasy).

8/5/2014 3:36 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-035.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We do the same forthe analogous pointsbetween 0.6�(-3, √3)and 0.1�(1.5, ½√3) .

8/5/2014 3:23 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-036.html

PostScript Trefoil • F.E.J. Linton 1 of 1

Page 5: A Piecewise Cubic PostScript Trefoil — F.E.J. Linton Math

We do the same forthe analogous pointsbetween 0.6�(-3, √3)and 0.1�(1.5, ½√3) .

8/5/2014 3:22 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-037.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We do the same forthe analogous pointsbetween 0.6�(-3, √3)and 0.1�(1.5, ½√3) .And then we’ll rotate ...once ...

8/5/2014 3:21 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-038.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We do the same forthe analogous pointsbetween 0.6�(-3, √3)and 0.1�(1.5, ½√3) .And then we’ll rotate ...once ... and twice ...

8/5/2014 3:20 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-039.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We do the same forthe analogous pointsbetween 0.6�(-3, √3)and 0.1�(1.5, ½√3) .And then we’ll rotate ...once ... and twice ...and then reflect acrossthe y-axis.

8/5/2014 3:19 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-040.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We do the same forthe analogous pointsbetween 0.6�(-3, √3)and 0.1�(1.5, ½√3) .And then we’ll rotate ...once ... and twice ...and then reflect acrossthe y-axis. Now let'sclean up a little ...

8/5/2014 3:17 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-041.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We do the same forthe analogous pointsbetween 0.6�(-3, √3)and 0.1�(1.5, ½√3) .And then we’ll rotate ...once ... and twice ...and then reflect acrossthe y-axis. Now let'sclean up a little ...There! Only ...

8/5/2014 3:14 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-042.html

PostScript Trefoil • F.E.J. Linton 1 of 1

We had to “fill” thezones between outerand inner Béziercurves with (opaque)white “paint” in orderthat the unreflectedarms of the trefoil notshine through thereflected ones. Now it’smore satisfying.

8/5/2014 1:20 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-043.html

PostScript Trefoil • F.E.J. Linton 1 of 1

Or, the same thing inrainbow colors ... .

8/5/2014 1:18 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-044.html

PostScript Trefoil • F.E.J. Linton 1 of 1

A Piecewise Cubic PostScript Trefoil — F.E.J. LintonMath/CS Emeritus, Wesleyan Univ., Middletown, CT, USA

References• http://en.wikipedia.org/wiki/Trefoil_knot• http://math.stackexchange.com/questions/148916/trefoil-knot-as-an-algebraic-curve• http://home.adelphi.edu/~stemkoski/knotgallery/• http://katlas.math.toronto.edu/wiki/File:TriquetraCaixaGeral.png• http://katlas.math.toronto.edu/w/images/a/af/TriquetraCaixaGeral.png• Adobe Systems Inc. PostScript Language Reference Manual (the RedBook) (2nd ed.), Addison-Wesley, Reading (MA), 1990, ISBN-13:978-0-201-18127-2 (cf. esp. p. 393)• V. Pratt <[email protected]>, http://boole.stanford.edu/Trefoil.jpg

8/5/2014 1:16 AM file:///D:/Docs/WesStuff/FRG-2014-15/ICM-SeoulKR/TalkSlides/Talk-045.html

PostScript Trefoil • F.E.J. Linton 1 of 1