复制内容到剪贴板
代码:
input:n1(5,2,300),n2(10,2,300),n3(20,2,300),n4(60,2,300),n5(120,2,300);
a:if(v=0 or capital=0,(h+l+c)/3,amount/v*0.01),circledot,colorwhite;
t:=0;
t1:=0;
t2:=0;
t3:=0;
t4:=0;
for i=0 to n5-1 do begin
r:=ppart(i)-ppart(i+1);
t:=t+ref(a,i)*r;
if i=n1-1 then t1:=t;
if i=n2-1 then t2:=t;
if i=n3-1 then t3:=t;
if i=n4-1 then t4:=t;
end;
mac1:t1/(1-ppart(n1));
mac2:t2/(1-ppart(n2));
mac3:t3/(1-ppart(n3));
mac4:t4/(1-ppart(n4));
mac5:t/(1-ppart(n5));