<filename>HW3/Practical/Exercise3.B.py
#!/usr/bin/env python
# coding: utf-8

# In[1]:


import matplotlib.pyplot as plt
# ^^^ pyforest auto-imports - don't write above this line
import numpy as np


# In[3]:


x_1 = np.linspace(120000,150000, 1000000)
y_1 = (16*x_1**3/3 + 20*x_1/3+4)*np.exp(-0.0003125*x_1)
plt.plot(x_1,y_1)
plt.gcf().axes[0].yaxis.get_major_formatter().set_scientific(False)


# In[4]:


x_1[np.argmin(y_1[y_1 >= 0.1])]


# In[ ]:





<filename>HW3/Practical/Exercise3.B.py
#!/usr/bin/env python
# coding: utf-8

# In[1]:


import matplotlib.pyplot as plt
# ^^^ pyforest auto-imports - don't write above this line
import numpy as np


# In[3]:


x_1 = np.linspace(120000,150000, 1000000)
y_1 = (16*x_1**3/3 + 20*x_1/3+4)*np.exp(-0.0003125*x_1)
plt.plot(x_1,y_1)
plt.gcf().axes[0].yaxis.get_major_formatter().set_scientific(False)


# In[4]:


x_1[np.argmin(y_1[y_1 >= 0.1])]


# In[ ]:





#!/usr/bin/env python # coding: utf-8 # In[1]: # ^^^ pyforest auto-imports - don't write above this line # In[3]: # In[4]: # In[ ]: