 objects. Technology is being used as a force multiplier,” said Dependra Pathak. “We have an institutionalised mechanism specifically to monitor Rohingyas, we do that in coordination with the Special Branch. We are doing it adequately,” he added.# -*- coding: utf-8 -*-
"""Copy of Newton's Canon.ipynb

Automatically generated by Colaboratory.

Original file is located at
    https://colab.research.google.com/drive/1ksDErnOOtLUOfp83wLQfH5p0x8Gi7VZf

Importing necessary libraries
"""

import numpy as np
import matplotlib.pyplot as plt

"""Important constants"""

G=6.67*10**-11 #Nm/kg^2
M=6*10**24 #kg
r=12756000/2 #m

"""defining necessary functions"""

def earth(r):                             #creating earth
  circ=np.linspace(0,360,1000)
  plt.figure(figsize=(10,10))
  circx=r*np.cos(circ)
  circy=r*np.sin(circ)
  plt.plot(circx,circy,'.',linewidth=1)

def ax(x,y):                                      #component of acceleration in x direction
    return G*M*x/(x**2+y**2)**(3/2)

def ay(x,y):                                      #component of acceleration in y direction
    return G*M*y/(x**2+y**2)**(3/2)
  
def V(x,y,u,a,dt):                                #velocity function
    v=u-a(x,y)*dt
    return v

def X(x,y,u,a,dt):                                #displacement as a function of x y velocity acceleration and time
  newV=V(x,y,u,ax,dt)
  averageV=(newV+u)/2
  newX=x+averageV*dt-0.5*ax(x,y)*dt**2
  return newX,newV

def Y(x,y,u,a,dt):                                #displacement in x direction as a function of x y velocity and acceleration, returns new
  newV=V(x,y,u,ay,dt)
  averageV=(newV+u)/2
  newY=y+averageV*dt-0.5*ay(x,y)*dt**2
  return newY,newV


def dist_calc(xin,yin,launch_angle):            #stuff for finding the launch range
      if launch_angle<90:                    #fired to the right
        if yin>=0:
         latn=np.degrees(np.arctan(yin/np.abs(xin)))
         print('the latitude of hit is ',  latn, 'N')
         if yin>0 and xin>0:
             print('the distance covered is ', np.pi*2*r/360*(90-latn)/1000, 'kms')
         else:
          print('the distance covered is ', np.pi*2*r/360*(270+latn)/1000, 'kms')
          
        elif yin<0:
         latn=np.degrees(np.arctan(np.abs(yin)/np.abs(xin)))
         print('the latitude of hit is ',  latn, 'S')
         if yin<0 and xin>0:
             print('the distance covered is ', np.pi*2*r/360*(90+latn)/1000, 'kms')
         else:
          print('the distance covered is ', np.pi*2*r/360*(270-latn)/1000, 'kms')


      else:                                               #fired to the left
        if yin>=0:
         latn=np.degrees(np.arctan(yin/np.abs(xin)))
         print('the latitude of hit is ',  latn, 'N')
         if yin>0 and xin>0:
             print('the distance covered is ', np.pi*2*r/360*(270+latn)/1000, 'kms')
         else:
          print('the distance covered is ', np.pi*2*r/360*(90-latn)/1000, 'kms')
          
        elif yin<0:
         latn=np.degrees(np.arctan(np.abs(yin)/np.abs(xin)))
         print('the latitude of hit is ',  latn, 'S')
         if yin<0 and xin>0:
             print('the distance covered is ', np.pi*2*r/360*(270-latn)/1000, 'kms')
         else:
          print('the distance covered is ', np.pi*2*r/360*(90+latn)/1000, 'kms')

"""The main stuff"""

u=8500                                #initial velocity in m/s
lat=np.radians(90)                    #launch latitude
theta=np.radians(40)                 #launch angle
dt=0.1                                #small time?

xpos=1.000001*r*np.cos(lat)           #launch location
ypos=1.000001*r*np.sin(lat)


Vx=u*np.cos(theta)                    #launch velocity components
Vy=u*np.sin(theta)

xin=xpos                              #launch positions
yin=ypos

xo=[]                                 #list to be filled with displacement values
yo=[]


for i in range(500000):
  xin,Vx=X(xin,yin,Vx,ax,dt)          #updating s and y positions 500000 times
  yin,Vy=Y(xin,yin,Vy,ay,dt)

  xo.append(xin)                      #adding a component in the list each time loop is conducted
  yo.append(yin)
  if xin**2+yin**2<r**2:              #condition for not entering the earth
    dist_calc(xin,yin,np.degrees(theta))

    break                             #breaking out of loop if touches earth

plt.figure(figsize=(10,10))
earth(r)                              #creating earth
plt.plot(xo,yo,'r')                       #plotting trajectoryIt had been an amazing day, Chidi had married his heartthrob of five years. It had not been an easy ride to be honest; from staying celibate especially when his flesh had wanted to devour her to the countless prayer meetings and fasting.
Chidi knew what it was to be in the world, he had partied hard, carried women, clubbed well. Infact it would be ideal if he said he had rocked the life of his head and still met with Christ before everything kept spiraling out of control. He counted himself lucky and he knew he owed it to Shade, he felt he had eaten his cake and had it at the same time this sometimes-brought guilt to him because his friends where not all that lucky. The day after he finally decided to quit the life they were all involved in an accident and no one survived. He knew he would have been in that car and this guilt spurred him on to be the best man he could possibly be and preach Christ to as many that came his way. Though Shade was not the one that invited him to church that faithful day, but she had made it her life’s mission to win him for Christ. She followed him up, she called him, text him and made sure to pray with him and for him he later found out. Sometimes he wondered what she saw in him to not only put in the work but even consider him for marriage.
Chidi was good-looking no doubt, he was also intelligent and making a good amount monthly, but he knew Shade was not all about that, even when more spiritually grounded men came to ask for her hands she insisted on him. When he even brought it up and asked her why she would not go for someone worthier than he, her answer shook his very foundation. She said, “when you have God, you are worth it besides His ways are not our ways neither His thought our thought. His plan towards us is for good and not for evil to give us an expected End”. Her words silenced him, and he had to pray really hard to be the man she prayed and hoped he would be.
Shade was pretty, she was bright like the sun if he could say that. She did not use makeup, but her beauty still radiated and when she walked into a place everyone did not have a choice but to stare. She was like a magnet that attracted all to her and Chidi was not immune. He struggled with the thought during their courtship, but