compare_analytical_vs_simulated
Run the same M/M/c configuration through BOTH the closed-form Erlang-C formula AND the discrete-event simulator, returning a side-by-side comparison with deltas. Use this when the user is validating QueueSim's engine against textbook values, learning queueing theory by watching simulation converge on the formula, or auditing a result that 'feels off' — agreement within ~5%% is the canonical sanity check for an M/M/c run. Pure-Exponential M/M/c only; the closed-form Erlang-C is undefined for other service distributions. Large deltas usually mean the simulation run was too short for steady-state — raise simulationDays. ANTI-FABRICATION: both sides come from real computation — closed-form is deterministic, simulation is stochastic but engine-backed. Quote both verbatim. Do not synthesize an 'average of the two' or recompute the formula from training-data recall.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| servers | Yes | Number of parallel servers (c). Integer 1-50. | |
| arrivalRate | Yes | Mean arrivals per hour (λ). | |
| serviceRate | Yes | Mean customers one server can finish per hour (μ). Must be > 0. | |
| simulationDays | No | Days to simulate on the DES side. Closed-form is instant. Range 1-30; longer runs converge closer to the formula. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| delta | Yes | ||
| inputs | Yes | ||
| simulated | Yes | ||
| analytical | Yes |