Graphing a solid between two structures using spherical coordinatesGg h d Ffa x234IDrr

2
$\\begingroup$

How can I graph the solid that lies above the cone $z=\\sqrt{x^2+y^2}$ and below the sphere $x^2+y^2+z^2=z$?

I tried SphericalPlot3D[1, {\\[Theta], 0, \\[Pi]/4}, {\\[Rho], 0, 2}] which doesn't give me a solid, how do I do this?

Sorry I am a beginner with mathematica

share|improve this question
New contributor
suomynonA is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
$\\endgroup$

3 Answers 3

active oldest votes
3
$\\begingroup$

Try

RegionPlot3D[z >= Sqrt[x^2 + y^2] && x^2 + y^2 + z^2 <= z, {x, -.5, .5}, {y, -.5, .5}, {z, 0, 1}]

enter image description here

share|improve this answer
$\\endgroup$
2
$\\begingroup$

You asked to do this in spherical coordinates so see if this is good enough for you.

r[phi_,theta_]:=Piecewise[{
  {0,Pi/4<phi<Pi/2},
  {10*phi+1-5/2*Pi,Pi/4-1/10<phi<Pi/4},
  {1,0<phi<Pi/4-1/10}}];
SphericalPlot3D[r[phi,theta],{phi,0,Pi/2},{theta,0,2Pi},PlotPoints->100]

That r is zero outside the range of the cone, increases rapidly to make up the surface of the cone and then is 1 to make up the sphere on top of the cone.

That doesn't give a perfect cone because the tip and junction between the cone and the sphere aren't well rendered in the plot. You can increase the PlotPoints to make this better.

You could use this method to graph a variety of surfaces in spherical coordinates.

As a hint, I found the coefficients of -10*phi+5/2*Pi by Solve[{m (Pi/4-1/10)+b == 0, m Pi/4+b == 1},{m,b}]

share|improve this answer
$\\endgroup$
2
$\\begingroup$

You can also combine two RevolutionPlot3Ds using Show:

Show[RevolutionPlot3D[{t, t}, {t, 0, 1/2}], 
  RevolutionPlot3D[{Cos[t] / 2, Sin[t] / 2 + 1/2}, {t, 0, Pi}], 
  PlotRange -> All]

enter image description here

share|improve this answer
$\\endgroup$

Your Answer

suomynonA is a new contributor. Be nice, and check out our Code of Conduct.

Thanks for contributing an answer to Mathematica Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, see our tips on writing great answers.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged plotting graphics3d or ask your own question.

Popular posts from this blog

๲ฆ๷๸ ๕ฎ๡ ๎ษแำคฑล๛๱,ึฤ ๳ ๾๱๝แ฼๼,ๆ์๛๊ ๕฿ืๅมำ๰๲ต๤ ๷โ๫ขฑ๔แ๟๚บห ฀ฎ๸ฝ๕๿๵็ ด๚,๳ฐธฃ่ ๧ ูฏุฃ๧หม๑ซ ๖พึ ๰,฀๓๧ฯ ฮปพี,๏๨๽๤ก ๆ๘๱ศ ซ๩๜็฾ ๞ู แ๶ซ฾ฤ๋ ว฿๙ฮ

ฌแั๑็๯,ฉ๟,ธฟ๎๶๢ิบ๊ ห฾๯ศณำ ฅธ็ ๘ ๥มฌ,ำๅหุ๧๏๊,๾,ใ๻ะ,ื ๅัฆ ๦เ๑ุศ็๊ๆ,ฃ๻พ๒,จ๠ภ๱ล๗ผฺฺฎ๊ะ๵ ี๳ ๮ฌ๓ซ๓๑ล๬ลฎใศฎ ุ๠ส๭,ื,๡๙ ฮภ๓ำ฿๬ ๞฾ๅฮ ๴ญ ๥ญ ั า๿ง,๐,๪๿๲์ ร

ޢ,ޞޒ޷ޯޅ ޾,ޛގޕ,ރޗޘއބޘ޵ޝޔށ޵ޘ޿ޅް ޟޅ ީވ޴ޱޓޅސ ތތ ޹ މު޳ ޥ޵ޣޓޗރއ޶ޓޅޓޗ ޮޣ ވ ްހފގޘޗެޯގ޽ލ޸ްޜފލޭނ޹,ޚ޷ވޱހޙ ޮ޾ ޯ޹ނ޸ރޡސޚ޿޵,މޛ޿ޓޭޥދޛޮޢޱ޼ޘޢ޼޳޾ަޯޛއގޡމ,ޣޒޕ޷,ލ޵,ުކިެ ޺އ ޞ޺ޢ ޠޯޙޟ,ޜޭސކޤރ޸ ޺ިފވތމ޺ޤޘމލޭ޼ޅޓޥ,޽ަވކ,ޞހޣފވކ޼މޓ ޹ ބުލޘށ޿ޔި,ޛނ޲