f (x) = A * sin (x) + B * sin (x) = R * cos (x-alpha)
where,
R = sqrt (A * A + B * B) = f (x) max
alpha = atan (A / B)
f '(x) = A*cos(x) - B*sin(x) = 0
=> A*cos(x_max) - B*sin(x_max) = 0
tan(x_max) = A/B
x_max = atan(A/B)
I have the following entry:
Code: Select all
12
1 1
-1 1
1 -1
-1 -1
-5 0
5 0
0 -5
0 5
165 267
-165 267
165 -267
-165 -267
Code: Select all
0.79 1.41
5.50 1.41
2.36 1.41
3.93 1.41
4.71 5.00
1.57 5.00
3.14 5.00
0.00 5.00
0.55 313.87
5.73 313.87
2.59 313.87
3.70 313.87