ENG2077
ASSESSMENT 3: Weibull Distribution
Instructions:
1. Complete the assignment question as given below
2. Name your files using the format: "A3 0123456.ipynb" where A3 represents "assignment no. 3" and 0123456 represents the 7 numeric digits in your GUID.
3. Electronic submission Upload you files to the ENG2077 course Moodle site
Wiebull Distribution
The Wiebull distribution can be used in analysing failure rates, wind speed distributions, and many other engineering phenomena. It is given by the equation:
where the shape factor, k>0, and the scale factor, A >0, characterise the distribution profile. An example distribution is shown in the figure at the end of this assessment description.
Write a Pvthon program which calculates the Wiebull distribution (trom the formula above-le. don't use an inbuilt Wiebull library function) as it varies with either the scale or shape parameter: Le. if varving in scale, use a fixed value for the shape parameter and vice versa. Your script. should also plot the distribution as shown in the figure at the end.
Your programshould:
Ask for the minimum, maximum and increment values for x.
Test to make sure these are within the correct limits, i.e. that:
Ask the user which option they would like: a fixed value of k with an array of o values, or a fixed value of with an array of k values.
Ask for the minimum, maximum and increment of k (or 6 Depending on the option selected.
Test to make sure these are within limits (i.e. min z 0, max > min, and that inc < max min).
The figure should be given appropriate axes, title and annotations as required.
A sample input:
A sample figure screen: