MATLAB Answers

Problem conversion into MATLAB

3 ビュー (過去 30 日間)
Ron Wilson
Ron Wilson 2020 年 7 月 5 日
回答済み: Nishant Gupta 2020 年 7 月 8 日
4. A telephone line hangs between two poles 14 m apart in the shape of a catenary y = 20cosh (x/20) -15, where x and y are measured in meters. a. Find the slope of this curve where it meets the right pole. b. Find the angle, θ between the line and the pole.

  0 件のコメント

サインインしてコメントする。

回答 (1 件)

Nishant Gupta
Nishant Gupta 2020 年 7 月 8 日
You can solve your problem using MATLAB as follows:
syms x y
y = 20 * cosh (x/20) -15 ;
Diffrentiate the equation representing line with respect to x to get slope of it:
f(x) = diff(y,x);
To get slope at the point where line meets pole, put x = 14:
slope = vpa(f(14),4);
Finally, to get the angle between the line and pole at that point use atan fun:
angle = vpa(90 - rad2deg(atan(slope)),4);
Refer to the following links to get more details about diff, atan and vpa functions:

  0 件のコメント

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by