Skip to content

Commit

Permalink
Fix #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
YBCA7 authored Apr 15, 2024
1 parent a8f6c4a commit 5f6257a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ def sas(edge_a, angle_c, edge_b):
rad_a = acos(cos_a)
rad_b = acos(cos_b)
sin_c = sin(rad_c)
area = edge_a * edge_b * sin_c / 2
circumference = edge_a + edge_b + edge_c
return f"""c = {edge_c}.
∠A = {degrees(rad_a)}°.
∠B = {degrees(rad_b)}°.
S = {edge_a * edge_b * sin_c / 2}.
C = {edge_a + edge_b + edge_c}.
S = {area}.
C = {circumference}.
rI = {2 * area / circumference}.
rO = {edge_a / sin_a / 2}.
sinA = {sin(rad_a)}.
Expand Down

0 comments on commit 5f6257a

Please sign in to comment.