## 定投是否真的如此美妙

matlab计算源程序为：
function dingtou_6()
% the program to calculate “dingtou” case
fp=fopen(‘dingtou_6.in’,’r’);
Indata=fscanf(fp,’%f’,[1,inf]); % monthly Shanghai index, starting from 1993
fclose(fp);
Indata;
count=length(Indata)
for ii=1:count
time(ii)=1993+(ii-1)/12; % starting from year 1993
index(ii)=Indata(1,ii); % Shanghai index
end
a(1)=1;
for ii=2:count
a(ii)=a(ii-1)*index(ii)/index(ii-1)+1;
end
fp=fopen(‘dingtou_6.out’,’w’);
fprintf(fp,’time invest outcome index\n’);
for ii=1:count
fprintf(fp,’%f %f %f %f\n’,time(ii),ii,a(ii),index(ii));
end
fclose(fp);
{"ft_lang_label":"__label__zh","ft_lang_prob":0.8692707,"math_prob":0.99571353,"size":1831,"snap":"2022-40-2023-06","text_gpt3_token_len":1255,"char_repetition_ratio":0.10782704,"word_repetition_ratio":0.41509435,"special_character_ratio":0.3080284,"punctuation_ratio":0.15915915,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9971749,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-30T01:02:42Z\",\"WARC-Record-ID\":\"<urn:uuid:5a81beb2-e52f-49ed-a07d-30a72ff9f168>\",\"Content-Length\":\"39564\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:54f55270-819c-48e8-8467-d120f3da88b0>\",\"WARC-Concurrent-To\":\"<urn:uuid:65e64598-0921-4530-9ed2-209d2d45ecc5>\",\"WARC-IP-Address\":\"94.23.66.212\",\"WARC-Target-URI\":\"https://www.chinaetfs.net/2008/01/07/%E5%AE%9A%E6%8A%95%E6%98%AF%E5%90%A6%E7%9C%9F%E7%9A%84%E5%A6%82%E6%AD%A4%E7%BE%8E%E5%A6%99/\",\"WARC-Payload-Digest\":\"sha1:Q5Q6TGK2IQQHJ3FZLLBWFE6XBKRHWVFU\",\"WARC-Block-Digest\":\"sha1:TAZ6MEPWSZLWWHY3S2SKDPPG4DOHOVIP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335396.92_warc_CC-MAIN-20220929225326-20220930015326-00125.warc.gz\"}"}