Answer:
import numpy as np
import matplotlib.pyplot as plt
def calculate_pi(x,y):
points_in_circle=0
for i in range(len(x)):
if np.sqrt(x[i]**2+y[i]**2)<=1:
points_in_circle+=1
pi_value=4*points_in_circle/len(x)
return pi_value
length=np.power(10,6)
x=np.random.rand(length)
y=np.random.rand(length)
pi=np.zeros(7)
sample_size=np.zeros(7)
for i in range(len(pi)):
xs=x[:np.power(10,i)]
ys=y[:np.power(10,i)]
sample_size[i]=len(xs)
pi_value=calculate_pi(xs,ys)
pi[i]=pi_value
print("The value of pi at different sample size is")
print(pi)
plt.plot(sample_size,np.abs(pi-np.pi))
plt.xscale('log')
plt.yscale('log')
plt.xlabel('sample size')
plt.ylabel('absolute error')
plt.title('Error Vs Sample Size')
plt.show()
Explanation:
The python program gets the sample size of circles and the areas and returns a plot of one against the other as a line plot. The numpy package is used to mathematically create the circle samples as a series of random numbers while matplotlib's pyplot is used to plot for the visual statistics of the features of the samples.
Answer:
1.
Explanation:
The option Paula can choose to ensure that the animation she has created in her presentation repeats is the transition. She can find the option of transition from the Transitions tab.
After selecting the Transitions tab, choose the effect you want to create in your presentations. You can also choose the sound of transition, or either you want to create on one slide or all slides, etc.
Therefore, option 1 is correct.
Answer:
I'm pretty sure its A
Explanation:
The Media it the biggest platform rn
Answer:
d. 65536
Explanation:
When the network administrator received the IPV6 prefix for subnetting and we have assumed that the administrator does not subnet into their interface ID portion.So the number of subnets the administrator can create from the /48 prefix are 65536.
Hence the answer to this question is 65536.
When delivering digital technologies to clients, a best practice is to: Recommend the client spread out their data centers to distribute energy usage globally.
<h3>What is a
computational sustainability?</h3>
Computational sustainability can be defined as a process through which societal, economic, ecological and environmental resources are balanced through the use of various mathematical and computational techniques.
<h3>The importance of
computational sustainability</h3>
Generally, computational sustainability helps to produce sufficient amount of energy for the world to globally distribute and support its biological systems.
In order to achieve computational sustainability, it is essential to practice the following:
- Ensure that software applications are widespread.
- Clients should spread out their data centers.
In conclusion, a best practice for delivering digital technologies to clients is to recommend a spread out of data centers to distribute energy usage globally.
Read more on computational sustainability here: brainly.com/question/24882256