NumPy allowed · plain Python earns 10 bonus points
Computed matrix × vector transformation
Execute a second-order Newton-Raphson optimization step.
Implement newton_raphson_step(x, f_prime, f_double_prime): calculate x_next = x - f_prime / f_double_prime. If abs(f_double_prime) < 1e-9, return x unchanged. Return float rounded to 4 decimals.
newton_raphson_step(x: float, f_prime: float, f_double_prime: float) -> float