計算機概論 Introduction to Computer Programming - 為何要學Fortran? Why learn Fortran? Fortran 90 as a Language of Choice
- What is on your Hard Drive?
"...I can write a finite-difference time-domain Maxwell equation solver
in Fortran in a quarter of the time it takes my users to make up their
minds whether a dialog box should be shifted two pixels to the left or
three pixels down. Computers are for number crunching!" --Mark Westwood
- "I don't know what the language of the year 2000 will look like, but it will be called Fortran." --C.A.R. Hoare
教科書 Textbook - Chapman, S. J. (2008). Fortran 95/2003 for Scientists and Engineers, Third edition, McGraw Hill, 974 pages, ISBN: 978-0-07-128578-0
本課程使用作業系統 Operating system for this course - 我自己開發的f95 live CD(見左側下載) My own f95 live CD (see download link on the right hand side)
- 下載後的檔案為ISO影像檔,需先燒錄成8 cm DVD後方可安裝,限32位元電腦 Need to burn the
downloaded iso file onto a blank CD or DVD disc before installation.
For 32-bit computers only.
上課地點 Classroom
說明 Notes
-
學習電腦程式設計和學習套裝軟體不同:學習套裝軟體的過程主要是實際指導示範操作的方式,因此需要每人面前有一台電腦幫助學習;相反地,學習程式設計需要
花大部分的時間講解和說明程式設計的邏輯和概念,因此反而並不需要隨時有一台電腦可以操作。Learning the computer
programming is different from learning software packages. The emphasis is not on how to use the software, but how to think logically, systematically, and precisely as a programmer.
新的評分規定 New grading policy - 教務處函:大學部學期成績平均不超過70分 The Office of Academic Affairs requires that the student grade average of any undergraduate course to not exceed 70 points.
- 9月22日教務處新的通知:大學部平均分數上限78分,研究所平均分數上限85分,改為無下限分數限制(link)Further clarification indicates that 78 points is the upper bound of the student average in a class (undergraduate students).
- 我的作法:如果學期成績平均未達78分,不做任何調整;如果學期成績平均超過78分,則將全體成績平移至平均為78分時為止,若有同學因此而低於60分,則以60分計。For
my classes, no adjustment will be made if the average is below 78
points. If the average is above 78 points, the same number of points
will be deducted from each student to move the average to 78 points
unless the deduction will fail a student. In that case, the student's
final grade will be 60 points.
課程大綱 SyllabusThis page serves as the course syllabus.
本學期課程進度記錄 Course scheduleWeek 1 (9/17):- 我清理了郵件群組中的成員名單,本學期選課同學請重新加入
- Introduction
- Live CD
- Homework#1: Create your 1st home page (odp or pdf, due next week) part I
Week 2 (9/24):- Homework#1: Create your 1st home page (odp or pdf, due next week) part II
- Chapman 1 (odp, pdf)
Week 3 (10/1): - Chapman 1 (odp, pdf)
- using gedit
- Homework #2: First program: hello.f
- Homework #3: Exercises 1-3, 1-4, 1-7 and 1-8 on page 20 of textbook
Week 4 (10/8): Week 5 (10/15): Week 6 (10/22): - Chap. 2 of Chapman (odp, pdf)
- Homework #6: C14、計算距離
- 記得執行date指定以顯示完成時間
- 作業新規定:本週起請將螢幕畫面貼在WORD中,打上姓名學號之後再繳交,手寫的姓名不收
Week 7 (10/29): - Chap. 3 of Chapman, part 1 (odp, pdf)
- Homework #7: 第三章一元二次方程式、第二章任意底的對數
Week 8 (11/5): - Chap. 3 of Chapman, part 1 (odp, pdf)
- Homework #8: 第三章四個象限的函數、分貝、第二章 cosh、三角形邊長
Week 9 (11/12): Midterm 期中考週 - 11/12星期四當天不上課 No class on Nov. 12 (Thursday)
- 單號:11/14星期六10:00-12:00直接到計網中心上機考試,共120分鐘 Odd number students: 2-hour midterm will be held at 10:00 on Nov. 14 (Saturday) at the computing center
- 雙號:11/14星期六12:30-2:30直接到計網中心上機考試,共120分鐘 Even number students: 2-hour midterm will be held at 12:30 on Nov. 14 (Saturday) at the computing center
- 以上兩個時段都不能參加的同學:11/17星期二10:00-12:00到計網中心上機考試,共120分鐘 2-hour makeup midterm will be held at 10:00 on Nov. 17 (Tuesday) at the computing center
- 上機測驗100分(共四題):可以看書,但是不能上網或使用隨身碟,也不能與他人討論,考完列印結果,紙張由老師提供
- 測驗範圍:第一至八週授課範圍
Week 10 (11/19): - 檢討期中考 Discuss the midterm exam
- Chap. 3 of Chapman, part 2 (odp, pdf)
- Homework #9: 決定星期幾、折射角
- 如何設定電腦教室的印表機
Week 11 (11/26): - 課本第四章前半部 First half of Chap. 4 Loops-1 (odp, pdf)
- Homework #10: 平均值標準偏差、一年的第幾天
- the lottery programs (file-1, file-2, file-3)
Week 12 (12/3): - 課本第四章後半部 Second half of Chap. 4 Loops-2 (odp, pdf)
- 第一位將上面這份投影片的最後一題做出來並將正確程式email給我的同學,期中考加20分(限60分以下同學參加),主旨務必註明:程式比賽
- Homework #11: 挑出最大值、球的飛行距離
Week 13 (12/10): - 繼續討論迴圈的使用
- 課本第五章前半部 First half of Chap. 5 (odp, pdf)
- Homework #12: 幾何平均值、調諧平均值、無窮級數
Week 14 (12/17): - 同一次的作業須做完一併繳交,缺交的部分視同零分,不可再補交
- 課本第五章前半部 First half of Chap. 5 (odp, pdf)
- 課本第五章後半部 Second half of Chap. 5 (odp, pdf)
- Lab #9: 1到10的表格、電容
Week 15 (12/24): - Lab #10: 讀檔案內容、線性迴歸、計算期中考平均
Week 16 (12/31): - 課本第六章 Chap. 6 Array (odp, pdf)
- Lab #11: 最大最小值、排序
Week 17 (1/7): - 課本第七章 Chap. 7 Procedures (odp, pdf)
- Homework: 斜邊、模組、亂數
Week 18 (1/14):- 期末考全部是上機測驗(共4題,每題25分),可以看書,不能上網或使用隨身碟,考完列印結果,紙張由老師提供,請攜帶身份證件,考試時間共計120分鐘,請勿遲到。考試中不可以向其他同學借資料。
- The final exam will consist of the lab programming test only. It is
an OPEN book exam. There will be 4 questions, each worth 25 points.
Internet usage and USB thumb drives are not allowed in the exam.
Printing paper will be provided. The exam will last for 120 minutes. Do
not be late. Borrowing material from other students during the exam is
not allowed.
- 學期成績已經公布,不及格的同學下週一上午10:00在土木系一樓電腦教室補考:
- http://www.cc.ntut.edu.tw/~waltchen/grades-fall-2008.html
- 補考已經批改,學期成績已經更新
- 1/9星期五12:00在土木系一樓電腦教室補上課、發考卷
繳交作業的規定 Requirements for submitting your homework - 繳交的作業或程式必須是繳交者自己獨力完成的,不可抄襲自他人之作業或程式,違反者(包括抄襲作業者及提供作業者、不論是私下提供或張貼在電子布告欄或網頁上)平時成績為零分,並另提送校規處分
Cheating
or plagiarizing on any exercises, homework assignments, or tests will
not be tolerated. The grades will be zero and the student will be
subjected to disciplinary actions. - 程式的執行結果應繳交螢幕快照,勿交電子檔,勿寄emails
Please
turn in screenshots of your programming assignments. Do not submit
electronic files. Do not send me e-mails of your files. - 其他非程式作業:請將班級、姓名和學號寫在第一頁、請按題號順序、使用A4大小筆記紙或白紙(不要用整本筆記本)、請訂在一起、要有過程、不要用紅筆寫、不要抄題、不要用影印題目的紙直接在旁邊寫答案
For
other written homework assignments, please use A4-size paper. Staple
your homework together and write your name and student ID number on the
first page. So not turn in an entire notebook. - 請按時繳交,不接受遲交
No late homework will be accepted. - 請註明班級、姓名、學號
Remember to write down your name and student ID number. - 裝訂在左上角,橫頁應該逆時針旋轉90度
Staple all of your papers together on the upper left hand corner. Horizontal pages should be rotated 90 degrees counterclockwise. - 請寫出完整過程並標示最後答案
Show your work and circle your final answers. 訣竅 Tips Resources - 在主機編譯程式的方法 Compiling Fortran programs on 140.124.13.12:
- 在免安裝光碟編譯程式的方法 Compiling Fortran programs using the F95 Live CD:
其他 Miscellaneous notes
|
|