[BangPypers] Exponential : warning overflow
Santosh Chiniwar
santosh.chini at gmail.com
Tue Mar 29 07:44:30 EDT 2016
Dear BangPypers,
Please find my code and I get Overflow warning. I am unable to continue
further. Any support or help is appreciated.
Thank you
Python 3 Code
#! /usr/local/bin/python3.4
""" Exponential Test Simulation """
import numpy as np
import scipy as sp
from scipy.integrate import odeint
from scipy.constants import *
from math import exp, log, sqrt
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import numpy as np
#physical Constant for j-v characterstic
t =300# temperature
e= elementary_charge# electron charge
ki= epsilon_0*3.9 # dielectric of insulator
s= 2e-9 #distance between metal electrodes
kb= Boltzmann # Boltzmann Constant
psi= 5.1 # potential Barrier for Gold
h=Planck #plancks constant
me=m_e # mass of electron
#voltage sampling in steps of 0.01
v = np.linspace(0, 1, 10)
j= np.exp(14.4*(np.sqrt(7+ (e*v*ki*s))- psi*s*ki)/kb*ki*s*t)
# To Plot the function vs voltage
plt.plot(v,j)
plt.xlabel('Voltage')
plt.ylabel('Tunnel Current ')
plt.show()
*Santosh P. Chiniwar*
*----------------------------------Research Scholar, Thin Film Measurement
Lab *
*Taiwan (ROC), **Tel.: +886-3211-8800*
*-ext.535 **Mob: +886-905667324*
The first principle is that you must not fool yourself-and you are the
easiest person to fool..... Richard Feynman
More information about the BangPypers
mailing list