Message Boards Message Boards

0
|
2785 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Plot the change in potential energies depending on the angle phi

Posted 4 years ago

I have a task where I need to display in the graph the change in potential energies depending on the angle phi, but I need to change phi and get the values of potential energies. And get stable segments of the mechanism on the chart

POSTED BY: Sanzhar Mukatay

This is an attempt:

func[phi_] = Sin[2*phi] - 0.5;
Manipulate[
 Plot[func[phi], {phi, -Pi, Pi}, 
  Epilog -> {Line[{{\[Phi], 0}, {\[Phi], func[\[Phi]]}, {0, 
       func[\[Phi]]}}]}],
 {\[Phi], -Pi, Pi, Animator}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract