Advertisement
vandryushkov

Untitled

Oct 30th, 2020
1,093
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. zCurrent = np.arange(-5, 5, 0.01)
  2. xCurrent = np.zeros(len(zCurrent))
  3. i = 0
  4. mfx = np.zeros(len(zCurrent))
  5. mfz = np.zeros(len(zCurrent))
  6. while i < len(zCurrent):
  7.     if (zCurrent[i] > (koeffZminus[0]-koeffZplus[0])/(koeffZplus[1]-koeffZminus[1])):
  8.         mfz[i] = koeffZplus(zCurrent[i])
  9.         mfx[i] = koeffXplus((mfz[i]-koeffXplus[0])/koeffXplus[1])
  10.         xCurrent[i] = (mfz[i]-koeffXplus[0])/koeffXplus[1]
  11.         #if (mfx[i] < )
  12.     else:
  13.         mfz[i] = koeffZminus(zCurrent[i])
  14.         mfx[i] = koeffXminus((mfz[i]-koeffXminus[0])/koeffXminus[1])
  15.         xCurrent[i] = (mfz[i]-koeffXminus[0])/koeffXminus[1]
  16.     i =i + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement