Comparing the work behind an iteration

Three programs solve the same engineering calculation, and all three results have independently passed the same accuracy requirement. An evaluation is one calculation of the model output at a supplied input.


For this timing model, each program has a startup time of 0.120 s0.120\ \text{s}. Each evaluation takes 0.004 s0.004\ \text{s}, and each iteration adds another 0.001 s0.001\ \text{s} of processing time. These times add directly, with no overlapping work or other costs.


Program A completes 8 iterations with 3 evaluations per iteration. Program B completes 12 iterations with 1 evaluation per iteration. Program C completes 5 iterations with 6 evaluations per iteration.


Complete the table with the exact total number of evaluations and exact total time in seconds. Use the stated timing model without additional rounding. The comparison holds the task and achieved accuracy fixed.

ProgramTotal evaluationsTotal time (s)
A
B
C

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Introduction to Numerical Analysis Questions: