Skip to content

Commit dbf274e

Browse files
Fixing build issues.
1 parent fd4cc27 commit dbf274e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/physics/DampedOscillator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public double[] stepEuler(double[] state, double dt) {
8989

9090
double x = state[0];
9191
double v = state[1];
92-
double acceleration = -2.0 * gamma * v - (omega0 * omega0) * x;
92+
double acceleration = -2.0 * gamma * v - omega0 * omega0 * x;
9393

9494
double xNext = x + dt * v;
9595
double vNext = v + dt * acceleration;

0 commit comments

Comments
 (0)