- #1
Schwarzschild90
- 113
- 1
Homework Statement
Plot the following function in maple (any graphics software):
[itex]I_\theta = I_m (cos (\beta))^2 \left( \frac{sin(\alpha)}{\alpha} \right)^2[/itex]
Homework Equations
Range = -20 degrees to 20 degrees
[itex]\beta = \frac{\pi d}{\lambda} \sin(\theta)[/itex]
[itex]\alpha = \frac{\pi a}{\lambda} \sin(\theta)[/itex]
[itex]d = 0,2[/itex]
[itex]a = 0,1[/itex]
[itex]\lambda = 632,8[/itex]
The Attempt at a Solution
This is the maple code:
plot((cos((Pi*.2)*sin(theta)/(632.8))^2)(sin((Pi*.1)*sin(theta)/(632.8))*(632.8)/((Pi*.1)*sin(theta)))^2, theta = convert(-20*degrees, radians) .. convert(20*degrees, radians), axes = boxed);
And in latex:
[itex]\displaystyle {\it plot} \left( \left( \left( \left( \cos \left( 0.0009929180323\\
\mbox{}\,\sin \left( \theta \right) \right) \right) ^{2} \right) \left( 2014.264960\,{\frac {\sin \left( 0.0004964590161\\
\mbox{}\,\sin \left( \theta \right) \right) }{\sin \left( \theta \right) }} \right) \right) ^{2},\theta={{\it convert} \left( -20\\
\mbox{}\,{\it degrees},{\it radians} \right) \ldots {\it convert} \left( 20\,{\it degrees},{\it radians} \right) }\\
\mbox{},{\it axes}={\it boxed} \right)[/itex]Yields this:
It should have a spike at (-17.5 degrees in radians) and at 0 degrees in radians and another at 17.5 degrees in radians. Mine has a single spike at 0 degrees in radians.
Last edited: