问题描述
cout << "Please enter the A vector's magnitude \n";
cin >> A_v;
cout << "Please enter the B vector's magnitude \n";
cin >> B_v;
cout << "The general form to find the direction of the resultant vector = \n" << "tan^-1 X " << UL << " [B X sin] \n" << UL_
<< " [A + B X cos]\n";
cout << "Please enter the angle value \n";
cin >> ct;
cost = cos(ct);
sint = sin(ct);
itan = atan(ct);
al = itan*((B*sint)/(A+(B*cost)));
ald = al*(180/3.141562);
cout << "The direction of the vector is inclined at " << ald << " degrees \n";
这是一个用于查找矢量的倾角/方向的程序(在物理学中)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)