Although the approach implemented above will work, the following variant, based on forming a sequence of three equations in A, B, c, each from the Law of Cosines, also works. The numeric solution of these equations will return angle A in the second quadrant.
Write a sequence of three equations in
|
>
|
|
|
Obtain a numeric solution via the fsolve command, imposing ranges on the variables.
|
>
|
|
|
Convert angle to degrees
|
•
|
Use evalf to convert angle A to degrees.
|
|
>
|
|
|
•
|
Apply the convert command with option degrees.
|
|
>
|
|
|
|
|