Skip to content

Commit 3da56ff

Browse files
committed
MNT: fixing typo for exponentiation operator
1 parent 17b502f commit 3da56ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketpy/simulation/flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ def u_dot_parachute(self, t, u, post_processing=False):
20442044
# Calculate the surface area of the parachute
20452045
if radius > height:
20462046
e = math.sqrt(1 - (inflated_height**2) / (inflated_radius**2))
2047-
surface_area = math.pi * inflated_radius**2 * (1 + (1 - e ^ 2) / e * math.atanh(e))
2047+
surface_area = math.pi * inflated_radius**2 * (1 + (1 - e**2) / e * math.atanh(e))
20482048
else:
20492049
e = math.sqrt(1 - (inflated_radius**2) / (inflated_height**2))
20502050
surface_area = (

0 commit comments

Comments
 (0)