Skip to content

Commit b861b2d

Browse files
ArthurJWHGui-FernandesBR
authored andcommitted
MNT: fixing typo for exponentiation operator
1 parent b18b9bf commit b861b2d

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
@@ -2193,7 +2193,7 @@ def u_dot_parachute(self, t, u, post_processing=False):
21932193
# Calculate the surface area of the parachute
21942194
if radius > height:
21952195
e = math.sqrt(1 - (inflated_height**2) / (inflated_radius**2))
2196-
surface_area = math.pi * inflated_radius**2 * (1 + (1 - e ^ 2) / e * math.atanh(e))
2196+
surface_area = math.pi * inflated_radius**2 * (1 + (1 - e**2) / e * math.atanh(e))
21972197
else:
21982198
e = math.sqrt(1 - (inflated_radius**2) / (inflated_height**2))
21992199
surface_area = (

0 commit comments

Comments
 (0)