In[]:=
ConicalSection::usage="The right circular cone is visualized
2
x
+
2
y
-
2
z
= 0 and the plane that intersects it a1 x + b1 y + c1 z = d1, when manipulatingthe coefficients of the plane, the different conical sections are formed in space. ";​​Manipulateee=2
2
a1
+
2
b1
2(
2
a1
+
2
b1
+
2
c1
)
;α=
180
π
ArcSin
2
a1
+
2
b1
2
a1
+
2
b1
+
2
c1
;γ[u_]:={(d1/(a1Cos[u]+b1Sin[u]+c1))Cos[u],(d1/(a1Cos[u]+b1Sin[u]+c1))Sin[u],(d1/(a1Cos[u]+b1Sin[u]+c1))};​​If[ee<1,g$=Ellipse];​​If[ee==1,g$=Parabola];​​If[ee>1,g$=Hyperbola];​​q=Grid[{{Plane,Angleº,Eccentricity,Genus,ConicalSection},{{a1,b1,c1,d1},α,ee,g$,γ[u]}},FrameAll,ItemSize->20,ItemStyle->13];​​Show[{ContourPlot3D[a1x+b1y+c1z==d1,{x,-10,10},{y,-10,10},{z,-10,10},Mesh->None,ContourStyleDirective[Yellow,Opacity[0.8],Specularity[White,30]]],ParametricPlot3D[{vCos[u],vSin[u],v},{u,0,2π},{v,-10,10},PlotStyle->Directive[Blue,Opacity[0.3],Specularity[White,30]],MeshFalse,PerformanceGoal->"Quality"],ParametricPlot3D[γ[t],{t,0,2π},PlotStyle->Black]/.Line[pts_,rest___]:>Tube[pts,0.1,rest]},AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),AxesOrigin{0,0,0},AxesTrue,BoxedFalse,PerformanceGoal"Quality",BoxRatios->Automatic​​],Style["You have to vary the coefficients and the independent term of the equation of the plane
a
1
x +
b
1
y +
c
1
z =
d
1
that intersects with the cone
2
x
+
2
y
-
2
z
= 0 to get the conical section:",Bold,Medium],{{a1,-9.9,"Coefficient
a
1
"},-10,10,0.1},Delimiter,{{b1,-9.9,"Coefficient
b
1
"},-10,10,0.1},Delimiter,{{c1,-9.9,"Coefficient
c
1
"},-10,10,0.1},Delimiter,{{d1,-9.9,"Independent term
d
1
"},-10,10,0.1},Delimiter,{{q,0,"Results:"}},ControlPlacementLeft
Out[]=
​
You have to vary the coefficients and the independent term of the equation of the plane
a
1
x +
b
1
y +
c
1
z =
d
1
that intersects with the cone
2
x
+
2
y
-
2
z
= 0 to get the conical section:
Coefficient
a
1
Coefficient
b
1
Coefficient
c
1
Independent term
d
1
Results:
Plane
Angleº
Eccentricity
Genus
ConicalSection
{-8.1,-3.2,-9.9,-9.9}
41.3386
0.934099
Ellipse
-
9.9Cos[u]
-9.9-8.1Cos[u]-3.2Sin[u]
,-
9.9Sin[u]
-9.9-8.1Cos[u]-3.2Sin[u]
,-
9.9
-9.9-8.1Cos[u]-3.2Sin[u]
