亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bc

?? unix v7是最后一個廣泛發布的研究型UNIX版本
??
?? 第 1 頁 / 共 2 頁
字號:
.RP.TLBC \- An Arbitrary Precision Desk-Calculator Language.AULorinda Cherry.AURobert Morris.AI.MH.ABBC is a language and a compiler for doing arbitrary precision arithmeticon the PDP-11 under the.UXtime-sharingsystem.  The output of the compiler is interpreted and executed bya collection of routines which can input, output, and doarithmetic on indefinitely large integers and on scaled fixed-pointnumbers..PPThese routines are themselves based on a dynamic storage allocator.Overflow does not occur until all available core storageis exhausted..PPThe language has a complete control structure as well as immediate-modeoperation.  Functions can be defined and saved for later execution..PPTwo five hundred-digit numbers can be multiplied to give athousand digit result in about ten seconds..PPA small collection of library functions is also available,including sin, cos, arctan, log, exponential, and Bessel functions ofinteger order..PPSome of the uses of this compiler are.IP \-to do computation with large integers,.IP \-to do computation accurate to many decimal places,.IP \-conversion of numbers from one base to another base..AE.PP.SHIntroduction.PPBC is a language and a compiler for doing arbitrary precisionarithmetic on the.UXtime-sharing system [1].The compiler was written to make conveniently available acollection of routines (called DC [5]) which are capable of doingarithmetic on integers of arbitrary size.  The compileris by no means intended to provide a complete programminglanguage.It is a minimal language facility..PPThere is a scaling provision that permits theuse of decimal point notation.Provision is made for input and output in bases other thandecimal.  Numbers can be converted from decimal to octal bysimply setting the output base to equal 8..PPThe actual limit on the number of digits that canbe handled depends on the amount of storage available on the machine.Manipulation of numbers with many hundreds of digitsis possible even on the smallest versions of.UX ..PPThe syntax of BC has been deliberately selected to agreesubstantially with the C language [2].  Those whoare familiar with C will find few surprises in this language..SHSimple Computations with Integers.PPThe simplest kind of statement is an arithmetic expressionon a line by itself.For instance, if you type in the line:.DS142857 + 285714.DEthe program responds immediately with the line.DS428571.DEThe operators \-, *, /, %, and ^ can also be used; theyindicate subtraction, multiplication, division, remaindering, andexponentiation, respectively.  Division of integers produces aninteger result truncated toward zero.Division by zero produces an errorcomment..PPAny term in an expression may be prefixed by a minus sign toindicate that it is to be negated (the `unary' minus sign).The expression.DS7+\-3.DEis interpreted to mean that \-3 is to be added to 7..PPMore complex expressions with several operators and withparentheses are interpreted just as inFortran, with ^ having the greatest bindingpower, then * and % and /, and finally + and \-.Contents of parentheses are evaluated before materialoutside the parentheses.Exponentiations areperformed from right to left and the other operatorsfrom left to right.The two expressions.DSa^b^c  and  a^(b^c).DEare equivalent, as are the two expressions.DSa*b*c  and  (a*b)*c.DEBC shares with Fortran and C the undesirable convention that.DSa/b*c  is equivalent to  (a/b)*c.DE.PPInternal storage registers to hold numbers have single lower-caseletter names.  The value of an expression can be assigned toa register in the usual way.  The statement.DSx = x + 3.DEhas the effect of increasing by three the value of the contents of theregister named x.When, as in this case, the outermost operator is an =, theassignment is performed but the result is not printed.Only 26 of these named storage registers are available..PPThere is a built-in square root function whoseresult is truncated to an integer (but see scaling below).The lines.DSx = sqrt(191)x.DEproduce the printed result.DS13.DE.SHBases.PPThere are special internal quantities, called `ibase' and `obase'.The contents of `ibase', initially set to 10,determines the base used for interpreting numbers read in.For example, the lines.DSibase = 811.DEwill produce the output line.DS9.DEand you are all set up to do octal to decimal conversions.Beware, however of trying to change the input base backto decimal by typing.DSibase = 10.DEBecause the number 10 is interpreted as octal, this statement willhave no effect.For those who deal in hexadecimal notation,the characters A\-F are permitted in numbers(no matter what base is in effect)and areinterpreted as digits having values 10\-15 respectively.The statement.DSibase = A.DEwill change you back to decimal input base no matter what thecurrent input base is.Negative and large positive input bases arepermitted but useless.No mechanism has been provided for the input of arbitrarynumbers in bases less than 1 and greater than 16..PPThe contents of `obase', initially set to 10, are used as the base for outputnumbers.  The lines.DSobase = 161000.DEwill produce the output line.DS3E8.DEwhich is to be interpreted as a 3-digit hexadecimal number.Very large output bases are permitted, and they are sometimes useful.For example, large numbers can be output in groups of five digitsby setting `obase' to 100000.Strange (i.e. 1, 0, or negative) output bases arehandled appropriately..PPVery large numbers are split across lines with 70 characters per line.Lines which are continued end with \\.Decimal output conversion is practically instantaneous, but outputof very large numbers (i.e., more than 100 digits) with other basesis rather slow.Non-decimal output conversion ofa one hundred digit number takes aboutthree seconds..PPIt is best to remember that `ibase' and `obase' have no effectwhatever on the course of internal computation oron the evaluation of expressions, but only affect input andoutput conversion, respectively..SHScaling.PPA third special internal quantity called `scale' isused to determine the scale of calculatedquantities.Numbers may haveup to 99 decimal digits after the decimal point.This fractional part is retained in further computations.We refer to the number of digits after the decimal point ofa number as its scale..PPWhen two scaled numbers are combined bymeans of one of the arithmetic operations, the resulthas a scale determined by the following rules.  Foraddition and subtraction, the scale of the result is the largerof the scales of the two operands.  In this case,there is never any truncation of the result.For multiplications, the scale of the result is neverless than the maximum of the two scales of the operands,never more than the sum of the scales of the operandsand, subject to those two restrictions,the scale of the result is set equal to the contents of the internalquantity `scale'.The scale of a quotient is the contents of the internalquantity `scale'.  The scale of a remainder isthe sum of the scales of the quotient and the divisor.The result of an exponentiation is scaled as ifthe implied multiplications were performed.An exponent must be an integer.The scale of a square root is set to the maximum of the scaleof the argument and the contents of `scale'..PPAll of the internal operations are actually carried out in termsof integers, with digits being discarded when necessary.In every case where digits are discarded, truncation andnot rounding is performed..PPThe contents of`scale' must be no greater than99 and no less than 0.  It is initially set to 0.In case you need more than 99 fraction digits, you may arrangeyour own scaling..PPThe internal quantities `scale', `ibase', and `obase' can beused in expressions just like other variables.The line.DSscale = scale + 1.DEincreases the value of `scale' by one, and the line.DSscale.DEcauses the current value of `scale' to be printed..PPThe value of `scale' retains its meaning as anumber of decimal digits to be retained in internalcomputation even when `ibase' or `obase' are not equal to 10.The internal computations (which are still conducted in decimal,regardless of the bases) are performed to the specified numberof decimal digits, never hexadecimal or octal or anyother kind of digits..SHFunctions.PPThe name of a function is a single lower-case letter.Function names are permitted to collide with simplevariable names.Twenty-six different defined functions are permittedin addition to the twenty-six variable names.The line.DS	define a(x){.DEbegins the definition of a function with one argument.This line must be followed by one or more statements,which make up the body of the function, endingwith a right brace }.Return of control from a function occurs when a returnstatement is executed or when the end of the function is reached.The return statement can take eitherof the two forms.DSreturnreturn(x).DEIn the first case, the value of the function is 0, and inthe second, the value of the expression in parentheses..PPVariables used in the function can be declared as automaticby a statement of the form.DSauto x,y,z.DEThere can be only one `auto' statement in a function and it mustbe the first statement in the definition.These automatic variables are allocated space and initializedto zero on entry to the function and thrown away on return.  Thevalues of any variables with the same names outside the functionare not disturbed.Functions may be called recursively and the automatic variablesat each level of call are protected.The parameters named in a function definition are treated inthe same way as the automatic variables of that functionwith the single exception that they are given a valueon entry to the function.An example of a function definition is.DS	define a(x,y){		auto z		z = x*y		return(z)	}.DEThe value of this function, when called, will be theproduct of itstwo arguments..PPA function is called by the appearance of its namefollowed by a string of arguments enclosed inparentheses and separated by commas.The resultis unpredictable if the wrong number of arguments is used..PPFunctions with no arguments are defined and called usingparentheses with nothing between them: b()..PPIf the function.ft Ia.ftabove has been defined, then the line.DSa(7,3.14).DEwould cause the result 21.98 to be printed and the line.DSx = a(a(3,4),5).DEwould cause the value of x to become 60..SHSubscripted Variables.PPA single lower-case letter variable namefollowed by an expression in brackets is called a subscriptedvariable (an array element).The variable name is called the array name and the expressionin brackets is called the subscript.Only one-dimensional arrays arepermitted.  The names of arrays are permitted tocollide with the names of simple variables and function names.Any fractionalpart of a subscript is discarded before use.Subscripts must be greater than or equal to zero and less than or equal to 2047..PPSubscripted variables may be freely used in expressions, infunction calls, and in return statements..PPAn array name may be used as an argument to a function,or may be declared as automatic ina function definition by the use of empty brackets:.DSf(a[\|])define f(a[\|])auto a[\|].DEWhen an array name is so used, the whole contents of the arrayare copied for the use of the function, and thrown away on exitfrom the function.Array names which refer to whole arrays cannot be usedin any other contexts..SHControl Statements.PPThe `if', the `while', and the `for' statementsmay be used to alter the flow within programs or to cause iteration.The range of each of them is a statement ora compound statement consisting of a collection ofstatements enclosed in braces.They are written in the following way.DSif(relation) statementwhile(relation) statementfor(expression1; relation; expression2) statement.DEor.DSif(relation) {statements}while(relation) {statements}for(expression1; relation; expression2) {statements}.DE.PPA relation in one of the control statements is an expression of the form.DSx>y.DEwhere  two expressions are related by one of the six relationaloperators <, >, <=, >=, ==, or !=.The relation ==stands for `equal to' and != stands for `not equal to'.The meaning of the remaining relational operators isclear..PPBEWARE of using = instead of == in a relational.  Unfortunately,both of them are legal, so you will not get a diagnosticmessage, but = really will not do a comparison..PPThe `if' statement causes execution of its rangeif and only if the relation is true.Then control passes to the next statement in sequence..PPThe `while' statement causes execution of its rangerepeatedly as long as the relationis true.  The relation is tested before each executionof its range and if the relationis false, control passes to the next statement beyond the rangeof the while..PPThe `for' statement beginsby executing `expression1'.  Then the relation is testedand, if true, the statements in the range of the `for' are executed.Then `expression2' is executed.  The relation is tested, and so on.The typical use of the `for' statement is for a controlled iteration,as in the statement.DSfor(i=1; i<=10; i=i+1) i.DEwhich will print the integers from 1 to 10.Here are some examples of the use of the control statements..DSdefine f(n){auto i, xx=1for(i=1; i<=n; i=i+1) x=x*ireturn(x)}.DEThe line.DS	f(a).DEwill print.ft Ia.ftfactorial if.ft Ia.ftis a positive integer.Here is the definition of a function which willcompute values of the binomial coefficient(m and n are assumed to be positive integers)..DSdefine b(n,m){auto x, jx=1for(j=1; j<=m; j=j+1) x=x*(n\-j+1)/jreturn(x)}.DEThe following function computes values of the exponential functionby summing the appropriate serieswithout regard for possible truncation errors:.DSscale = 20define e(x){	auto a, b, c, d, n	a = 1	b = 1	c = 1	d = 0	n = 1	while(1==1){		a = a*x		b = b*n		c = c + a/b		n = n + 1		if(c==d) return(c)		d = c	}}.DE.SHSome Details.PPThere are some language features that every user should knowabout even if he will not use them..PPNormally statements are typed one to a line.  It is also permissibleto type several statements on a line separated by semicolons..PPIf an assignment statement is parenthesized, it then hasa value and it can be used anywhere that an expression can.For example, the line.DS(x=y+17).DEnot only makes the indicated assignment, but also prints theresulting value..PPHere is an example of a use of the value of anassignment statement even when it is not parenthesized..DSx = a[i=i+1].DEcauses a value to be assigned to x and also increments ibefore it is used as a subscript..PPThe following constructs work in BC in exactly the same manneras they do in the C language.  Consult the appendix or theC manuals [2] for their exact workings..DS.ta 2ix=y=z  is the same as	x=(y=z)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜精品久久久久久超碰 | 中文字幕一区日韩精品欧美| 337p日本欧洲亚洲大胆精品| 国产性做久久久久久| 国产精品高清亚洲| 五月婷婷激情综合| 国产精品一二一区| 在线视频国内一区二区| 欧美va亚洲va国产综合| 亚洲色大成网站www久久九九| 日本视频一区二区三区| 成人av在线播放网址| 欧美一区二区在线观看| 亚洲美女视频在线| 国产在线精品国自产拍免费| 在线一区二区视频| 欧美国产亚洲另类动漫| 日韩影院免费视频| eeuss鲁片一区二区三区 | 欧美精品成人一区二区三区四区| 久久久精品综合| 午夜在线成人av| 成人av网站免费| 91精品婷婷国产综合久久性色 | 9i在线看片成人免费| 在线成人午夜影院| 亚洲日穴在线视频| 国产白丝精品91爽爽久久| 欧美一区二区三区视频| 夜夜精品浪潮av一区二区三区| 国产成人在线色| 欧美不卡一区二区三区| 午夜在线电影亚洲一区| 欧美主播一区二区三区| 日韩毛片视频在线看| 高清在线观看日韩| 久久色成人在线| 久久精品国产澳门| 91精选在线观看| 亚洲成a人在线观看| 色综合色综合色综合色综合色综合 | 欧美日韩中文字幕精品| 综合久久久久久久| av不卡在线播放| 国产日产欧美一区| 国产精品亚洲第一区在线暖暖韩国 | 一区二区三区欧美在线观看| av不卡在线观看| 亚洲欧洲日产国码二区| 成人激情免费视频| 国产精品三级视频| 北条麻妃国产九九精品视频| 久久久激情视频| 成人久久视频在线观看| 中文字幕一区视频| 色婷婷精品久久二区二区蜜臀av| 亚洲色图20p| 日本精品视频一区二区| 一区二区欧美在线观看| 欧美性大战久久久久久久| 一区二区不卡在线播放 | 亚洲美女电影在线| 在线精品视频免费观看| 亚洲国产综合色| 欧美一区二区日韩| 国产在线视视频有精品| 国产午夜精品一区二区三区四区| 国产成人精品亚洲午夜麻豆| 国产精品福利影院| 色狠狠综合天天综合综合| 亚洲成在人线在线播放| 7777精品伊人久久久大香线蕉超级流畅 | 风间由美性色一区二区三区| 国产精品国产三级国产专播品爱网| 成人手机在线视频| 最近日韩中文字幕| 欧美日韩久久久久久| 青青草原综合久久大伊人精品| 日韩精品中文字幕一区二区三区| 麻豆极品一区二区三区| 欧美国产国产综合| 色欧美片视频在线观看在线视频| 亚洲宅男天堂在线观看无病毒| 欧美一级片在线观看| 国产精品亚洲视频| 亚洲一二三区视频在线观看| 欧美不卡一二三| 一本一道波多野结衣一区二区| 日本在线观看不卡视频| 国产欧美日韩一区二区三区在线观看| 91美女片黄在线| 日本欧美大码aⅴ在线播放| 久久精品人人做人人综合| 色94色欧美sute亚洲线路一ni| 免费人成黄页网站在线一区二区 | 欧美视频在线观看一区| 久久精品av麻豆的观看方式| 国产精品另类一区| 欧美精品亚洲二区| 99久久婷婷国产综合精品| 日韩电影网1区2区| 亚洲柠檬福利资源导航| 日韩欧美国产不卡| 色狠狠色狠狠综合| 国产传媒日韩欧美成人| 亚洲第一激情av| 中文天堂在线一区| 欧美成人官网二区| 欧美图片一区二区三区| 不卡的看片网站| 国产在线播放一区二区三区| 亚洲电影一区二区| 国产精品久久久久久久久免费樱桃 | 欧美大黄免费观看| 欧美中文字幕一区| av激情亚洲男人天堂| 国产麻豆精品久久一二三| 午夜精品一区在线观看| 亚洲黄色录像片| 最新国产成人在线观看| 欧美激情一区二区三区| 精品欧美一区二区久久| 69堂精品视频| 欧美三级乱人伦电影| 色婷婷综合久久久中文一区二区| 精品一区二区三区免费毛片爱| 性感美女久久精品| 亚洲国产精品久久久久婷婷884| 《视频一区视频二区| 国产精品拍天天在线| 欧美经典一区二区三区| 久久综合狠狠综合久久综合88 | 国产精品白丝jk白祙喷水网站| 麻豆成人av在线| 日韩激情一二三区| 视频一区二区三区入口| 亚洲一区二区av电影| 一区二区在线免费观看| 亚洲精品成人少妇| 亚洲欧美一区二区三区国产精品| 欧美激情在线看| 国产精品久久久久久久久快鸭| 国产精品视频一二| 中文字幕制服丝袜成人av | 欧美日韩国产在线观看| 欧美视频你懂的| 欧美日韩免费在线视频| 欧美日韩精品系列| 91精品国模一区二区三区| 欧美一二三在线| 欧美v亚洲v综合ⅴ国产v| 久久久久久**毛片大全| 国产女同性恋一区二区| 国产精品久久久久aaaa| 国产精品高潮呻吟| 亚洲精品视频一区| 亚洲午夜在线电影| 免费成人在线视频观看| 激情另类小说区图片区视频区| 精品亚洲免费视频| 成人av在线播放网址| 在线免费观看日韩欧美| 4hu四虎永久在线影院成人| 91精品蜜臀在线一区尤物| 欧美变态tickling挠脚心| 国产日韩精品一区| 亚洲黄色在线视频| 日本不卡一区二区三区| 久久成人综合网| 成人高清免费观看| 欧美日韩国产高清一区二区| 精品国产成人在线影院| 国产精品亲子乱子伦xxxx裸| 亚洲一区av在线| 国产综合色产在线精品| 99re在线精品| 欧美日韩夫妻久久| 亚洲国产成人私人影院tom | 一区二区三区精品| 秋霞午夜av一区二区三区| 国产精品一品视频| 欧美在线一区二区| 欧美精品一区二区蜜臀亚洲| 中文字幕欧美一| 久久精品国产亚洲高清剧情介绍 | 青青草精品视频| 成人高清av在线| 欧美一区二区视频在线观看2022| 久久久高清一区二区三区| 亚洲一区二三区| 久久精品av麻豆的观看方式| 色综合天天天天做夜夜夜夜做| 日韩精品一区二区三区蜜臀| 中文字幕色av一区二区三区| 麻豆国产精品777777在线| 一本到不卡精品视频在线观看| 精品国产青草久久久久福利| 亚洲综合在线免费观看| 国产精品一线二线三线| 欧美日韩mp4|