版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、(*輸入原始數(shù)據(jù);yuanArray=時間間隔,"位置1"還是"位移2",數(shù)據(jù)1,數(shù)據(jù)2,.,數(shù)據(jù)n; *)(*以下部分為數(shù)據(jù)處理部分*)wArray = 0;wArrayn = 0;sArray = ;sArrayn = ;vArray = ;vArrayn = ;avArray = ;avArrayn = ;aArray = ;aArrayn = ;aAverage = 0;t =.;time = yuanArray1;timed = time*1.;yuanArray = DeleteyuanArray, 1;xuanze = yuanArray1
2、;yuanArray = DeleteyuanArray, 1;Ifxuanze = 1,wArray = yuanArray;wArrayn = Tablei - 1, i, LengthyuanArray;wLength = LengthwArray;Fori = 1, i < wLength, i+,sArray = AppendsArray, (wArrayi + 1 - wArrayi);sArrayn = AppendsArrayn, i;wArray = DeletewArray, 1;wArrayn = DeletewArrayn, 1;Ifxuanze = 2,sArr
3、ay = yuanArray;sArrayn = Tablei, i, LengthyuanArray;Fori = 1, i <= LengthyuanArray, i+,wArray = AppendwArray, wArrayi + sArrayi;wArrayn = AppendwArrayn, wArrayni + 1;sLength = LengthsArray;Fori = 1, i < sLength, i+,vArray = AppendvArray, (sArrayi + 1 + sArrayi)/(2 time);vArrayn = AppendvArrayn
4、, i;avArray = AppendavArray, (sArrayi + 1 - sArrayi)/time2; avArrayn = AppendavArrayn, i;sLength = LengthsArray;sLength2 = FloorsLength/2;sLength3 = CeilingsLength/2;Fori = 1, i <= sLength2, i+,aArray =AppendaArray, (sArrayi + sLength3 - sArrayi)/(sLength3*time2); aArrayn = AppendaArrayn, i;aAver
5、age = aAverage + aArrayi/sLength2;biaoti = "時間間隔:"timed = time*1.biaoti = "位置坐標:"wArrayd = wArray*1.wArrayn2 = InnerList, wArrayn, wArray, ListwArrayn3 = InnerList, wArrayn*time, wArray, Listbiaoti = "t內(nèi)的位移:"sArrayd = sArray*1.sArrayn2 = InnerList, sArrayn, sArray, List
6、biaoti = "計算的速度:"vArrayd = vArray*1.vArrayn2 = InnerList, vArrayn + 1, vArray, ListvArrayn3 = InnerList, vArrayn*time, vArray, Listbiaoti = "t內(nèi)的速度變化:"vbArray = DeletevArray, -1 - DeletevArray, 1biaoti = "相鄰點的加速度:"avArrayd = avArray*1avArrayn2 = InnerList, avArrayn, avAr
7、ray, ListavArrayn3 = InnerList, avArrayn*time, avArray, Listbiaoti = "逐差法計算的各個加速度:"aArrayd = aArray*1.aArrayn2 = InnerList, aArrayn, aArray, Listbiaoti = "平均加速度:"aAveraged = aAverage*1.biaoti = "位移圖象:"wFit = FitwArrayn3, 1, t, t2, twPoint = ListPlotwArrayn3, AxesOrigin
8、-> 0, 0;wLine = PlotwFit , t, 0, LengthwArrayn*time, AxesOrigin -> 0, 0; ShowwPoint, wLinebiaoti = "速度圖象:"vFit = FitvArrayn3, 1, t, tvPoint = ListPlotvArrayn3, AxesOrigin -> 0, 0;vLine = PlotvFit , t, 0, LengthvArrayn*time, AxesOrigin -> 0, 0; ShowvPoint, vLinebiaoti = "相鄰
9、點的加速度圖象:"avFit = FitavArrayn3, 1, tavPoint = ListPlotavArrayn3, AxesOrigin -> 0, 0;avLine = PlotavFit, t, 0, LengthavArrayn, AxesOrigin -> 0, 0; ShowavPoint, avLinebiaoti = "加速度圖象:"aAveraged = aAverage*1.aPoint = ListPlotaArrayn2, AxesOrigin -> 0, 0;aLine = PlotaAveraged, t,
10、0, LengthvArrayn, AxesOrigin -> 0, 0; ShowaPoint, aLineRemovexuanze; Removet;(*另一種輸入法:*)wArray = 0;wArrayn = 0;sArray = ;sArrayn = ;vArray = ;vArrayn = ;avArray = ;avArrayn = ;aArray = ;aArrayn = ;aAverage = 0;t =.;p = Input"請選擇類型:輸入1 選擇: '依次輸入相鄰時刻的位置坐標' 輸入2 選擇: '依次輸入相鄰時間間隔內(nèi)的位移
11、39; 按 Cancel 鍵 選擇: '退出'請輸入1或2:", 1;Ifp = 1,time = Input"時間間隔相等,輸入T:", 0.1;timed = time*1.;Fori = 1, i > -1, i+,p = InputStringJoin"已輸入:", ToStringi, "個位置坐標, ", ToStringwArray, "再依次輸入相鄰時刻的位置坐標,w", ToStringi + 1, ":", i2 + 14 + 6 Random
12、; Ifp = $Canceled, Break;wArray = AppendwArray, p;wArrayn = AppendwArrayn, i;wArray = DeletewArray, 1;wArrayn = DeletewArrayn, 1;wLength = LengthwArray;Fori = 1, i < wLength, i+,sArray = AppendsArray, (wArrayi + 1 - wArrayi); sArrayn = AppendsArrayn, i;Ifp = 2,time = Input"時間間隔相等,輸入T:",
13、 0.1;Fori = 1, i > -1, i+,p = InputStringJoin"已輸入:", ToStringi - 1, "個位置坐標, ", ToStringsArray, "再依次輸入相鄰時刻的位置坐標,s", ToStringi, ":", 2 i - 1 + 6 Random;Ifp = $Canceled, Break;sArray = AppendsArray, p;sArrayn = AppendsArrayn, i;wArray = AppendwArray, wArrayi +
14、 p;wArrayn = AppendwArrayn, i;sLength = LengthsArray;Fori = 1, i < sLength, i+,vArray = AppendvArray, (sArrayi + 1 + sArrayi)/(2 time);vArrayn = AppendvArrayn, i;avArray = AppendavArray, (sArrayi + 1 - sArrayi)/time2;avArrayn = AppendavArrayn, i;sLength = LengthsArray;sLength2 = FloorsLength/2;sL
15、ength3 = CeilingsLength/2;Fori = 1, i <= sLength2, i+,aArray = AppendaArray, (sArrayi + sLength3 - sArrayi)/(sLength3*time2); aArrayn = AppendaArrayn, i;aAverage = aAverage + aArrayi/sLength2;biaoti = "時間間隔:"timed = time*1.biaoti = "位置坐標:"wArrayd = wArray*1.wArrayn2 = InnerLis
16、t, wArrayn, wArray, ListwArrayn3 = InnerList, wArrayn*time, wArray, Listbiaoti = "t內(nèi)的位移:"sArrayd = sArray*1.sArrayn2 = InnerList, sArrayn, sArray, Listbiaoti = "計算的速度:"vArrayd = vArray*1.vArrayn2 = InnerList, vArrayn + 1, vArray, ListvArrayn3 = InnerList, vArrayn*time, vArray, Li
17、stbiaoti = "t內(nèi)的速度變化:"vbArray = DeletevArray, -1 - DeletevArray, 1biaoti = "相鄰點的加速度:"avArrayd = avArray*1avArrayn2 = InnerList, avArrayn, avArray, ListavArrayn3 = InnerList, avArrayn*time, avArray, Listbiaoti = "逐差法計算的各個加速度:"aArrayd = aArray*1.aArrayn2 = InnerList, aArra
18、yn, aArray, Listbiaoti = "平均加速度:"aAveraged = aAverage*1.biaoti = "位移圖象:"wFit = FitwArrayn3, 1, t, t2, twPoint = ListPlotwArrayn3, AxesOrigin -> 0, 0;wLine = PlotwFit , t, 0, LengthwArrayn*time, AxesOrigin -> 0, 0; ShowwPoint, wLinebiaoti = "速度圖象:"vFit = FitvArrayn3, 1, t, tvPoint = ListPlotvArrayn3, AxesOrigin -> 0, 0;vLine = PlotvFit , t, 0, LengthvArrayn*time, AxesOrigin -> 0, 0; ShowvPoint, vLinebiaoti = "相鄰點的加速度圖象:"avFit = FitavArrayn3, 1, tavPoint = ListPlotavArrayn3, AxesOrigin -> 0, 0;avLine = P
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 期中總結的演講稿小學
- 新質生產(chǎn)力下的就業(yè)新機遇
- 城管發(fā)聲亮劍發(fā)言稿
- 吊車卸鋼材合同范例
- 奶茶股合同范例
- 《環(huán)境保護專題講座》課件
- 定金購車合同范例
- 《可靠性管理講》課件
- 《體液免疫應答》課件
- 個人總結思想政治學習方面
- 消防安全知識培訓課件
- 高中歷史選擇性必修2知識點總結歸納
- 16J914-1 公用建筑衛(wèi)生間
- 物聯(lián)網(wǎng)應用技術職業(yè)生涯規(guī)劃
- 2024年廣東恒健投資控股有限公司招聘筆試參考題庫含答案解析
- 對排球大力跳發(fā)球失誤的技術原因分析
- 中藥飲片甲類
- 初中化學儀器與藥品編碼
- PRVC機械通氣PPT課件
- 2型糖尿病人生活質量評定量表(中文版)
- GR326CORE規(guī)范講解
評論
0/150
提交評論