《櫻樹抽芽時,想你》
《遇見你,在北緯55度》
《接近無限透明的藍》
《奧杜邦的祈禱》
《海邊的卡夫卡》
《點亮幸福微光》
# -*- coding: cp950 -*-
#本息平均攤還法
from math import ceil
PV=1000000 #本金
T=10 #貸款年期
m=12 #月數
n=m*T #總期數
r=1.2*0.01 #年利率
#每月應付本息金額之平均攤還率
meanrate=((1+r/12)**n*r/12)/((1+r/12)**n-1)
print '%s %.5f' % ('每月應付本息金額之平均攤還率 = ',meanrate)
#平均每月應攤付本息總額
FV=PV*meanrate
print '%s %.5f' % ('平均每月應攤付本息總額 = ',FV)
print ('每月應還本金金額 每月應付利息金額 每月應付本息金額 ')
for j in range(1,13):
#每月應付利息金額
month_i=PV*r/12
#每月應付本息金額 : FV
#每月應還本金金額
month_v=FV-month_i
PV=PV-FV
print '%8.f %8.f %8.f' % (ceil(month_v),ceil(month_i),ceil(FV))
raw_input("Press anykey...")
% create the polar plot, and store the line's handle
p = polar((0:99)*pi/100, (0:99)/100);
% find all of the lines in the polar plot
h = findall(gcf,'type','line');
% remove the handle for the polar plot line from the array
h(h == p) = [];
% delete all other lines
delete(h);
% find all of the text objects in the polar plot
t = findall(gcf,'type','text');
% delete the text objects
delete(t);