#Variable declaration
#For sun
sigma=5.67*10**-8#w/m^2-k^4
T=5700#in K
#Calculations&Results
ST_sun=sigma*T**4
print " Surface temperature of sun is %.2e W/m^2."%ST_sun
#For north star
T=8300#in K
ST_Northstar=sigma*T**4
print " Surface temperature of sun is %.2e W/m^2."%ST_Northstar
import math
#Variable declaration
g=9.8#in m/s^2, constant
l=.1#in m
m=0.01#in kg
h=6.63*10**-34#Joule-sec
theta=0.1#in radians
#Calculations&Results
v=(1/(2*math.pi)*math.sqrt(g/l))
print "Oscillation frequency of pendulum %.1f per sec."%v
E=m*g*l*(1-math.cos(theta))
print "Energy of pendulum at its maximum potential %.e Joule."%E
Delta_e=h*v
print "Delta E %.1e Joule"%Delta_e