Assignment 4: Relative Difference

Assignment 4: Relative Difference

par Sofiya P'yavka,
Nombre de réponses : 1

Hi,

In Assignment 4 since we are computing the relative difference as a stopping condition in the solved_fixed_point function/implementing it in the relative_error function, is there a specific way in which we should handle the case when |(x’ - x) / x| produces NaN or Inf (e.g. if division by zero were to occur)?

Thanks!