Files
math6601_projects/homework8/Homework8_Q5.txt
2025-11-05 11:03:28 -05:00

29 lines
1.3 KiB
Plaintext

Running gradient descent from initial x = -1.0
Alpha: 0.05, Current x: -0.00, g(x): 0.00
Alpha: 0.15, Current x: 1.64, g(x): -0.62
Divergence detected for alpha = 0.25. Stopping early.
Divergence detected for alpha = 0.4. Stopping early.
Divergence detected for alpha = 0.5. Stopping early.
Divergence detected for alpha = 0.6. Stopping early.
Running gradient descent from initial x = 0.5
Alpha: 0.05, Current x: 0.00, g(x): 0.00
Alpha: 0.15, Current x: 0.00, g(x): 0.00
Alpha: 0.25, Current x: 0.00, g(x): 0.00
Alpha: 0.40, Current x: -0.00, g(x): 0.00
Alpha: 0.50, Current x: 0.02, g(x): 0.00
Alpha: 0.60, Current x: 0.18, g(x): 0.05
Running gradient descent from initial x = 0.65
Alpha: 0.05, Current x: 1.64, g(x): -0.62
Alpha: 0.15, Current x: 1.64, g(x): -0.62
Alpha: 0.25, Current x: 1.64, g(x): -0.62
Alpha: 0.40, Current x: 1.51, g(x): -0.57
Alpha: 0.50, Current x: 0.01, g(x): 0.00
Divergence detected for alpha = 0.6. Stopping early.
Running gradient descent from initial x = 2.5
Alpha: 0.05, Current x: 1.64, g(x): -0.62
Alpha: 0.15, Current x: 0.00, g(x): 0.00
Divergence detected for alpha = 0.25. Stopping early.
Divergence detected for alpha = 0.4. Stopping early.
Divergence detected for alpha = 0.5. Stopping early.
Divergence detected for alpha = 0.6. Stopping early.