Как это можно сделать?
Программно, конечно
Const pi As Single = 3.14159265358979
Const e As Single = 2.71828182845905
Function Ugol(x1 As Single, y1 As Single, _
x2 As Single, y2 As Single, _
x1t As Single, y1t As Single, _
x2t As Single, y2t As Single) As Single
Dim u1 As Single, u2 As Single
u1 = Atn((y2 - y1) / (x2 - x1))
u2 = Atn((y2t - y1t) / (x2t - x1t))
Ugol = Abs(u2 - u1)
End Function
Const pi As Single = 3.14159265358979
Const e As Single = 2.71828182845905
Function Ugol(k As Single, b As Single, _
kt As Single, bt As Single) As Single
Dim u1 As Single, u2 As Single
u1 = Atn(k)
u2 = Atn(kt)
Ugol = Abs(u2 - u1)
End Function
Private Const SmallNumber As Double = 1E-70
Public Function Atn2(ByVal y As Double, ByVal x As Double) As Double
If SmallNumber * Abs(y) < Abs(x) Then
If x < 0 Then
If y = 0 Then
Atn2 = Pi()
Else
Atn2 = Atn(y / x) + Pi() * Sgn(y)
End If
Else
Atn2 = Atn(y / x)
End If
Else
Atn2 = Sgn(y) * Pi() / 2
End If
End Function
Vladimir! писал(а):А по поводу математики девятого класса... Да я не программист вообще по образованию, а жуть как интересно и для дела полезно.
Vladimir! писал(а):Поменьше бы только неистовых флудеров... (Толку от них никакого, а г...на не оберешься)
С уважением, Владимир
Сейчас этот форум просматривают: AhrefsBot, Yandex-бот и гости: 6