Contents 1 Problem 1: 3 2 Problem 2: 5 3 Problem 3: 3.1 MATLAB’s script: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 9 4 Problem 4: 11 1 Assignment 1 Name:Muhammad Faraz ul Abrar Class: BEE 9 D CMS: 219377 October 26, 2020 2 1 Problem 1: 3 4 2 Problem 2: 5 6 3 Problem 3: (a) The Erlang’s B formula is given by: B= AN N! Pi=N Ai i=0 i! where A=Traffic Intensity in Erlangs ; N= Number of Trunked Channels This formula requires factorial calculation which sometimes becomes very complex to calculate as N gets large. Thus a Recursive approach shown below solves as given in [1]: 7 8 The above implementation has been done in MATLAB as required in part (a): 3.1 MATLAB’s script: Function: (a) Erlang B function (b) Erlang B for given 3 systems Figure 1: MATLAB code for Erlang B with recursive approach Plot: 9 10 4 Problem 4: References [1] Elieser Ernesto Martı́nez. Recursion applied to the erlang b formula for determining the telephone exchanges grade of service. 11 2017. 11