I would like to represent a Catenary-curve in Mathematica, and then allow the user to Manipulate each of the parameters, like the Hanging-Points’ position (A,B), the cable’s weight, the force of gravity etc.?
I would like to represent a Catenary-curve in Mathematica, and then allow the user
Share
I would do it like this:
First, define the catenary:
Now I can either find the parameters
a,candyof this curve numerically, usingFindRoot:Alternatively, you could solve for the parameters exactly:
and then use this solution in the Manipulate:
The
FindRootversion is faster and more stable, though. Result looks like this:For completeness’ sake: It’s also possible to find a catenary through 3 points: