計算機專業(yè)英語教程ppt5_第1頁
計算機專業(yè)英語教程ppt5_第2頁
計算機專業(yè)英語教程ppt5_第3頁
計算機專業(yè)英語教程ppt5_第4頁
計算機專業(yè)英語教程ppt5_第5頁
已閱讀5頁,還剩25頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

五、借用詞借用詞一般來自廠商名、商標名、產品代號名、發(fā)明者名、地名等,它通過將普通公共英語詞匯演變成專業(yè)詞意而實現(xiàn)。有的則是將原來已經有的詞匯賦予新的含義。例如:woofer低音喇叭 tweeter高音喇叭 flag標志、狀態(tài)cache高速緩存 semaphore信號量 firewall防火墻mailbomb郵件炸彈 scratchpad高速緩存 fitfall專用程序入口在現(xiàn)代科技英語中借用了大量的公共英語詞匯、日常生活中的常用詞匯,而且,以西方特有的幽默和結構講述科技內容。這時,讀者必須在努力擴大自己專業(yè)詞匯的同時,也要掌握和豐富自己的生活詞匯,并在閱讀和翻譯時正確采用適當?shù)暮x。ComputerEnglishChapter3NumberSystemsandBooleanAlgebraKeypoints:

usefultermsanddefinitionsofNumbersystemandBooleanAlgbra

Difficultpoints:

ConversionoftheNumberSystemsandBooleanAlgbraRequirements:1.ConceptsofNumberSystemandtheirconversion2.BooleanAlgebra

3.Moore’sLaw

4.科技英語中數(shù)學公式的讀法

NewWords&Expressions:hexadecimaladj.十六進制的;n.十六進制 radixn.根,基數(shù)octaladj.八進制的;n.八進制 alphabetn.字母表fractionaladj.分數(shù)的,小數(shù)的 wholenumbern.整數(shù)remaindern.余數(shù) significantfiguren.有效數(shù)字quotientn.商 algorithmn.算法complementn.補碼,余角 carryn.進位3.1NumberSystems

Abbreviations:

Binary-codedhexadecimal(BCH)二進制編碼的十六進制Theuseofthemicroprocessorrequiresaworkingknowledgeofbinary,decimal,andhexadecimalnumberingsystems.Thissectionprovidesabackgroundforthosewhoareunfamiliarwithnumbersystems.Conversionsbetweendecimalandbinary,decimalandhexadecimal,andbinaryandhexadecimalaredescribed.3.1NumberSystems

使用微處理器需要掌握二進制、十進制和十六進制數(shù)制系統(tǒng)的基本知識,本節(jié)為那些不熟悉數(shù)制系統(tǒng)的讀者提供這方面的背景知識。說明了十進制與二進制之間、十進制與十六進制之間,及二進制與十六進制之間的轉換。Beforenumbersareconvertedfromonenumberbasetoanother,thedigitsofanumbersystemmustbeunderstood.Earlyinoureducation,welearnedthatadecimal,orbase10,numberwasconstructedwith10digits:0through9.Thefirstdigitinanynumberingsystemisalwaysazero.Forexample,abase8(octal)numbercontains8digits:0through7;abase2(binary)numbercontains2digits:0and1.3.1.1Digits將數(shù)從—種數(shù)制向另一種數(shù)制轉換之前,必須了解數(shù)的計數(shù)系統(tǒng)。在早期教育中,我們已學習了十進制數(shù),或以10為基的數(shù),它由10個數(shù)字組成:0到9。任何計數(shù)制的第一個數(shù)字總是零,這種規(guī)則適用于任何其他數(shù)制。例如,以8為基的數(shù)(八進制)包含8個數(shù)字:0到7,而以2為基的數(shù)(二進制)包含2個數(shù)字:0和l。Ifthebaseofanumberexceeds10,theadditionaldigitsusethelettersofthealphabet,beginningwithanA,Forexample,abase12numbercontains12digits:0through9,followedbyAfor10andBfor11,Notethatabase10numberdoesnotcontaina10digit,justasabase8numberdoesnetcontainan8digit.Themostcommonnumberingsystemsusedwithcomputersaredecimal,binary,andhexadecimal(base16).(Manyyearsagooctalnumberswerepopular.)Eachsystemisdescribedandusedinthissectionofthechapter.3.1.1Digits如果基數(shù)大于10,其余數(shù)字用從A開始的字母表示,例如,以12為基的數(shù)包含12個數(shù)字,0到9,之后用A代表10,B代表11。注意,以10為基的數(shù)不包含數(shù)字10,如同以8為基的數(shù)不包括數(shù)字8一樣。計算機中最通用的計數(shù)制是十進制、二進制、八進制和十六進制(基為16)。每種計數(shù)制都將在本節(jié)中進行說明和應用。Oncethedigitsofanumbersystemareunderstood,largernumbersareconstructedbyusingpositionalnotation.Ingradeschool,welearnedthatthepositiontotheleftoftheunitspositionwasthetensposition,thepositiontotheleftofthetenspositionwasthehundredsposition,andsoforth.(Anexampleisthedecimalnumber132:Thisnumberhas1hundred,3tens,and2units.)Whatprobablywasnotlearnedwastheexponentialvalueofeachposition:Theunitspositionhasaweightof100or1;thetenspositionhasweightof101,or10;andthehundredspositionhasaweightof102,or100.3.1.2PositionalNotation一旦我們理解了計數(shù)制的數(shù)字后,就可用位計數(shù)法構造更大的數(shù)值。在小學時我們都學過個位的左邊一位是十位,十位左邊一位是百位,以此類推(例如十進制數(shù)132,這個數(shù)字有—個百,三個十和兩個一)?;蛟S我們沒有學過每個位的指數(shù)值:個位的權為l00,即1;十位的權為101或10;而百位的權為102或l00。Theexponentialpowersofthepositionsarecriticalforunderstandingnumbersinothernumberingsystems.Thepositiontotheleftoftheradix(numberbase)point,calledadecimalpointonlyinthedecimalsystem,isalwaystheunitspositioninanynumbersystem.Forexample,thepositiontotheleftofthebinarypointisalways20or1;thepositiontotheleftoftheoctalpointis80or1.Inanycase,anynumberraisedtoitszeropowerisalways1,ortheunitsposition.3.1.2PositionalNotation位的指數(shù)冪在理解其他計數(shù)制中的數(shù)時是個關鍵?;鶖?shù)小數(shù)點,在十進制中稱為十進制小數(shù)點,其左邊的位在任何數(shù)制中都是個位。例如,二進制小數(shù)點左邊的位是20或1。而八進制小數(shù)點左邊的位是80或1。在任何情況下,任何數(shù)的零次冪總是1,或1個單位。Thepositiontotheleftoftheunitspositionisalwaysthenumberbaseraisedtothefirstpower;inadecimalsystem,thisisl01,orl0.Inabinarysystem,itis21,or2;andinanoctalsystemitis81,or8.Therefore,an11decimalhasadifferentvaluefroman11binary.The1ldecimaliscomposedof1tenplus1unitandhasavalueof11units;whilethebinarynumber11iscomposedof1twoplus1unit,foravalueof3decimalunits.The11octalhasavalueof9units.3.1.2PositionalNotation個位左邊的位總是基數(shù)的1次冪,在十進制系統(tǒng)中是101,或10;在二進制中是21,或2;而在八進制中是81,或8。因此,十進制的11與二進制的11具有不同的數(shù)值。十進制11表示—個10加上一個1,其值為11;二進制11表示—個2加上—個1,其值為3;八進制11的值為9。Inthedecimalsystem,positionstotherightofthedecimalpointhavenegativepowers.Thefirstdigittotherightofthedecimalpointhasavalueof10-1,or0.1.Inthebinarysystem,thefirstdigittotherightofthebinarypointhasavalueof2-1,or0.5.Ingeneral,theprinciplesthatapplytodecimalnumbersalsoapplytonumbersinanyothernumbersystem.3.1.2PositionalNotation在十進制系統(tǒng)中,對于十進制小數(shù)點右邊的位,它的冪為負數(shù)。十進制小數(shù)點右邊第一位數(shù)的值為10-1,或0.1。在二進制中,二進制小數(shù)點右邊第—位數(shù)的值為2-1或0.5。一般來說,十進制使用的計數(shù)法可以用于任何其他數(shù)制。Example3-1showsa110.101inbinary(oftenwrittenas110.1012).Italsoshowsthepowerandweightorvalueofeachdigitposition.Toconvertabinarynumbertodecimal,addtheweightsofeachdigittoformitsdecimalequivalent.The110.1012isequivalenttoa6.625indecimal(4+2+0.5+0.125).Noticethatthisisthesumof22(or4)plus21(or2),but20(or1)isnotaddedbecausetherearenodigitsunderthisposition.Thefractionpartiscomposedof2-1(0.5)plus2-3(or.125),butthereisnodigitunderthe2-2(or.25).3.1.2PositionalNotation例3-1給出了一個二進制數(shù)110.101(通常寫成110.1012),也給出了這個數(shù)每個位的冪、權和值。為了把二進制數(shù)轉換為十進制,將每位數(shù)字的權相加,就得到了它的等效十進制值。二進制110.101等于十進制的6.625(4+2+0.5+0.125)。注意,這個和的整數(shù)部分是由22(4)加21(2)構成,之所以沒有用20(1)是因為這個位的數(shù)為零。小數(shù)部分由2-1(0.5),加2-3(0.125)構成,但是沒有用2-2(0.25)。Thepriorexampleshaveshownthattoconvertfromanynumberbasetodecimal,determinetheweightsorvaluesofeachpositionofthenumber,andthensumtheweightstoformthedecimalequivalent.Supposethata125.78octalisconvertedtodecimal.Toaccomplishthisconversion,firstwritedowntheweightsofeachpositionofthenumber.ThisappearsinExample3-2.Thevalueof125.78is85.875decimal,or1

64plus2

8plus5

1plus7

.125.3.1.3ConversiontoDecimal前面的例子說明了將任何其他基數(shù)的數(shù)轉換為十進制數(shù)時,十進制數(shù)的值取決于該數(shù)每個位上的權或值,它們的和就是等效的十進制數(shù)值。假定要將125.78(八進制)轉換為十進制。為了完成這個轉換,首先寫出該數(shù)每一位數(shù)的權,如例3-2所示,125.78的值是十進制的85.875,即1

64+2

8+5

1+7

0.125。Noticethattheweightofthepositiontotheleftoftheunitspositionis8.Thisis8times1.Thennoticethattheweightofthenextpositionis64,or8times8.Ifanotherpositionexisted,itwouldbe64times8,or512.Tofindtheweightofthenexthigher-orderposition,multiplytheweightofthecurrentpositionbythenumberbase(or8,inthisexample).Tocalculatetheweightsofpositiontotherightoftheradixpoint,dividebythenumberbase.Intheoctalsystem,thepositionimmediatelytothefightoftheoctalpointis1/8,or.125.Thenextpositionis.125/8,or.015625,whichcanalsobewrittenas1/64.3.1.3ConversiontoDecimal注意,該數(shù)個位左邊那位的權是8(1

8)。再前一位的權是64(8

8)。如果存在更前一位,則其權將是512(64

8)。將當前位的權乘上基數(shù),就可得到更高一位的權(本例中是乘8)。而計算小數(shù)點右邊那些位的權,需要用基數(shù)去除。在八進制中,緊跟八進制小數(shù)點右邊的那位的權是1/8,即0.125。下一位是0.125/8,即0.015625,也可以寫成1/64。

Hexadecimalnumbersareoftenusedwithcomputers.A6A.CH(Hforhexadecimal)isillustratedwithitsweightsinExample3-3.Thesumofitsdigitsis106.75,or106.Thewholenumberpartisrepresentedwith6

16plus10(A)

1.Thefractionpartis12(C)asanumeratorand16(16-1)asthedenominator,or12/16,whichisreducedto3/4.3.1.3ConversiontoDecimal計算機經常使用十六進制。例3-2給出了一個十六進制數(shù)6A.CH(H表示十六進制),以及它的權。它的各位數(shù)值之和是106.75,即106。整數(shù)部分用6

16加10(A)

1表示;分數(shù)部分用12(C)作為分子,16作為分母(16-1),或表示為12/16,化簡得3/4。

Conversionsfromdecimaltoothernumbersystemsaremoredifficulttoaccomplishthanconversiontodecimal.Toconvertthewholenumberportionofanumbertodecimal,dividebytheradix.Toconvertthefractionalportion,multiplybytheradix.

3.1.4ConversionFromDecimal

由十進制轉換成其他進制比由其他進制轉換成十進制困難。轉換十進制整數(shù)部分時,要用基數(shù)去除,轉換分數(shù)部分時,要用基數(shù)去乘它們。WholeNumberConversionfromDecimal.Toconvertadecimalwholenumbertoanothernumbersystem,dividebytheradixandsavetheremaindersassignificantdigitsoftheresult.Analgorithmforthisconversionasisfollows:1.Dividethedecimalnumberbytheradix(numberbase).2.Savetheremainder(firstremainderistheleastsignificantdigit),3.Repeatsteps1and2untilthequotientiszero.3.1.4ConversionFromDecimal

轉換十進制整數(shù)部分將十進制整數(shù)轉換成其他數(shù)制時,要用基數(shù)去除,并且保存余數(shù),作為結果的有效數(shù)字。這種轉換的算法如下:1.用基數(shù)除十進制數(shù)。2.保存余數(shù)(最先得到的余數(shù)是最低有效位數(shù)字)。3.重復步驟l和2,直到商為零。ConvertingfromaDecimalFraction.Conversionfromdecimalfractiontoanothernumberbaseisaccomplishedwithmultiplicationbytheradix.Forexample,toconvertadecimalfractionintobinary,multiplyby2.After

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論