Question
Hi, can someone help me with this MATHEMATICA question Part 5 Spherical Coordinates: SphericalPlot3D -- Create a plot of sphfct over domain D = [sphDomainStart,
Hi, can someone help me with this MATHEMATICA question
Part 5 Spherical Coordinates: SphericalPlot3D -- Create a plot of sphfct over domain D = [sphDomainStart, sphDomainEnd] as defined -- Complete the definition of sphfct3D. This is a curve in 3D corresponding to phi=0 and theta in D. You will need to read the Help for SphericalPlot3D to learn what this curve definition should be -- Complete sphfct3Dplot to generate a 3D plot of a curve that appears as a curve on the SphericalPlot3D surface
sphDomainStart = 0.0; sphDomainEnd = Pi;
(* function to use to create generating function *) sphfct[\[Theta]_] := 1 + 2 Cos[2 \[Theta]];
(* TO DO *) (* plot the input function *) (* TO DO *) (* 3d curve for spherical plot surface. Plot curve on surface for \ phi=0, theta in sphDomain *) sphfct3D[theta_] := {0.0, 0.0 , 0.0};
(* TO DO *) (* create a 3d plot of it *) (* Add PlotStyle\[Rule]{Red,Thick} *) (*sphfct3Dplot = ... *)
splot = SphericalPlot3D[ sphfct[\[Theta]] , {\[Theta], sphDomainStart , sphDomainEnd}, {\[Phi], 0, 2 Pi}, PlotStyle -> Opacity[0.3], Mesh -> None];
(* plot surface and curve on surface *) Show[{(*sphfct3Dplot, *) splot}, PlotRange -> All]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started