Assignment 4: Relative Difference

Assignment 4: Relative Difference

by Sofiya P'yavka -
Number of replies: 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!

In reply to Sofiya P'yavka

Re: Assignment 4: Relative Difference

by Ramses van Zon -
It's a good idea, but not really required for the assignment.