Label

  • ActionScript 2
  • AD Player 2
  • Algorithm 2
  • AS3 16
  • Audio 1
  • Audio Description Player 1
  • Bitmap 1
  • BitmapData 1
  • Browser 1
  • C# Experience 4
  • Chart 1
  • Flash 10
  • Game 1
  • Geometry 1
  • JavaScript 2
  • Mathematics 6
  • Music Online 1
  • MVC 1
  • Performance 1
  • PureMVC 1
  • Slide 1
  • Talks 1
  • Tool 1
  • Tool Player 1
Toggle Side
Home   »   Mathematics   »   Fish Curve

Fish Curve


var xp:Number = 0;
var yp:Number = 0;
var t:Number = 0;
var a:Number = 200;
x = stage.stageWidth / 2;
y = stage.stageHeight / 2;
graphics.lineStyle(0,0x000000);
addEventListener(Event.ENTER_FRAME, onRun);
function onRun(evt:Event):void {
    xp = a * Math.cos(t) - (a * Math.pow(Math.sin(t),2))/Math.sqrt(2);
    yp = a * Math.cos(t) * Math.sin(t);
    if (t == 0){
      graphics.moveTo(xp, yp);
    }else{
      graphics.lineTo(xp, yp);
    }
    t += 0.05;
}
FishCurve
The fish curve is a term coined in this work for the ellipse negative pedal curve with pedal point at the focus for the special case of the eccentricity e^2=1/2. For an ellipse with parametric equations
x=acost
(1)
y=(asint)/(sqrt(2)),
(2)
the corresponding fish curve has parametric equations
x_n=acost-(asin^2t)/(sqrt(2))
(3)
y_n=acostsint.
(4)
The Cartesian equation is
 -2a^4sqrt(2)a^3x-2a^2(x^2-5y^2)+(2x^2+y^2)^2+2sqrt(2)ax(2x^2+5y^2)=0
(5)
which, when the origin is translated to the node, can be written
 (2x^2+y^2)^2-2sqrt(2)ax(2x^2-3y^2)+2a^2(y^2-x^2)=0
(6)
(Lockwood 1957).
FishCurvePieces
The area of a curve is given by
A=1/2|int(xy^'-yx^')dt|
(7)
=1/8a^2|int[3cost+cos(3t)+2sqrt(2)sin^2t]dt|
(8)
so the areas of the tail and head are given by
A_(tail)=(2/3-pi/(4sqrt(2)))a^2
(9)
A_(head)=(2/3+pi/(4sqrt(2)))a^2,
(10)
giving an overall area for the fish as
 A=4/3a^2
(11)
(Lockwood 1957).
The arc length of the curve is given by
s=intsqrt(x^('2)+y^('2))dt
(12)
=aint_0^(2pi)sqrt(cos^4t+(1+2sqrt(2)cost)sin^2t+sin^4t)dt
(13)
=asqrt(2)(1/2pi+3)
(14)
(Lockwood 1957).
The curvature and tangential angle are given by
kappa(t)=(2sqrt(2)+3cost-cos(3t))/(2a[cos^4t+sin^2t+sin^4t+sqrt(2)sintsin(2t)]^(3/2))
(15)
phi(t)=pi-arg(sqrt(2)-1-2/((1+sqrt(2))e^(it)-1)),
(16)
where arg(z) is the complex argument.
TschirnhausenCubicFish
The Tschirnhausen cubic, illustrated above, also resembles a fish, as does the trefoil curve.
SEE ALSO: Burleigh's Oval, Ellipse Negative Pedal Curve, Folium, Talbot's Curve, Trefoil Curve, Tschirnhausen Cubic

REFERENCES:
Lockwood, E. H. "Negative Pedal Curve of the Ellipse with Respect to a Focus." Math. Gaz. 41, 254-257, 1957.
Lockwood, E. H. A Book of Curves. Cambridge, England: Cambridge University Press, p. 157, 1967.



CITE THIS AS:
Weisstein, Eric W. "Fish Curve." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/FishCurve.html

Labels: AS3 ,  Flash ,  Mathematics   at:  3:36 AM     Email This BlogThis! Share to X Share to Facebook

1 comments:

arc length worksheet said...

Very well discuss,maths is only subject which require more practice than other subjects,so one should try to practice maths for better results.

April 22, 2012 at 10:03 PM

Post a Comment

Newer Post Home
Subscribe to: Post Comments ( Atom)
© Hung Le 2007-2016. Powered by Blogger