Graphing cylinders in Mathematica

Click For Summary

Discussion Overview

The discussion revolves around graphing cylinders in Mathematica, specifically focusing on creating a semi-transparent cylinder, drawing a second perpendicular cylinder, and finding the intersection curve of the two cylinders. The scope includes technical coding challenges and graphical representation in a computational environment.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant shares code for creating a semi-transparent cylinder using ParametricPlot3D in Mathematica.
  • Another participant inquires about the difficulties faced, suggesting issues with parametrizations or using Mathematica.
  • A participant provides code for a second cylinder, claiming it appears perpendicular to the first but expresses uncertainty about how to graph both cylinders together and find their intersection curve.
  • Another participant suggests using the Show function to combine the two cylinders and highlights the need to "highlight" the surface points common to both cylinders.

Areas of Agreement / Disagreement

Participants generally agree on the need to graph both cylinders together and identify their intersection, but there is uncertainty regarding the correct approach to achieve this and the specific parametrizations involved.

Contextual Notes

Participants have not fully resolved the parametrizations for the cylinders or the method for highlighting the intersection curve, indicating potential limitations in their current understanding or approach.

Reflected
Messages
13
Reaction score
0
Below is some code that creates a semi-transparent cylinder.
firstcylinder =
ParametricPlot3D[{Cos[t], u, Sin[t]}, {t, 0, 2 Pi}, {u, -2, 2} ,
PlotStyle -> {Red, Opacity -> .3}, Mesh -> None];
Show[firstcylinder]

Draw a second cylinder that is perpendicular to the given cylinder.
Draw a three-dimensional curve that shows that complete intersection of the two cylinders.

Need help!
 
Physics news on Phys.org
Do you have difficulties finding the parametrizations of the cylinder and the intersection or using mathematica?:smile:
 
It's kind of both, I have gotten somewhere though.
secondcylinder =
ParametricPlot3D[{(u*Sin[Pi] + Cos[Pi]*Cos[t]),
Sin[t], (u*Cos[Pi] - Sin[Pi]*Cos[t])}, {t, 0, 2 Pi}, {u, -2, 2} ,
PlotStyle -> {Blue, Opacity -> .3}, Mesh -> None];
Show[secondcylinder]
I don't know how to graph both cylinders on the same graph, but that graph itself looks perpendicular to the first cylinder. If that's true, then I'm not sure about the second part about how to find the curve that shows the complete intersection of the two cylinders.
 
If you put them together by Show[firstcylinder, secondcylinder], you will see that they intersect. The problem is asking you to "highlight" the surface points that are common to both.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K