Answer:
In Function library you would find the use in Formula function
Answer:
- import math
-
- def standard_deviation(aList):
- sum = 0
- for x in aList:
- sum += x
-
- mean = sum / float(len(aList))
-
- sumDe = 0
-
- for x in aList:
- sumDe += (x - mean) * (x - mean)
-
- variance = sumDe / float(len(aList))
- SD = math.sqrt(variance)
-
- return SD
-
- print(standard_deviation([3,6, 7, 9, 12, 17]))
Explanation:
The solution code is written in Python 3.
Firstly, we need to import math module (Line 1).
Next, create a function standard_deviation that takes one input parameter, which is a list (Line 3). In the function, calculate the mean for the value in the input list (Line 4-8). Next, use the mean to calculate the variance (Line 10-15). Next, use sqrt method from math module to get the square root of variance and this will result in standard deviation (Line 16). At last, return the standard deviation (Line 18).
We can test the function using a sample list (Line 20) and we shall get 4.509249752822894
If we pass an empty list, a ZeroDivisionError exception will be raised.
Here are the main functions of an operating system:
1) Manage the resources of the device
The operating system controls how much of each resource is distributed, and it controls things like the processing unit and memory.
2) Establish a interface for the user of the device
The operating system must classify what the classes of the script/code have to do and what they implement.
3) Service application software
The operating system must service each application that is downloaded onto the device. It must balance it's use of storage between apps.
Answer:
The main objective of router is to connect various networks simultaneously and it works in network layer
Explanation:
The main objective of router is to connect various networks simultaneously and it works in network layer
The answer to this question is the term virtual memory. A virtual memory is a type of memory that uses a secondary memory which is implemented on hardware and software. A virtual memory maps and combines virtual addresses into a physical address inside the computer memory and operating system controls the memory into virtual memory.