亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
一区二区三区.www| 人妖欧美一区二区| 欧美一级视频精品观看| 免费在线看一区| 国产精品色哟哟网站| 在线看不卡av| 成人av网站免费| 日本一区中文字幕| 亚洲在线观看免费视频| 久久精品视频一区| 成人美女在线观看| 国产精选一区二区三区| 亚洲一二三四区不卡| 国产精品久久久久天堂| 日韩欧美国产成人一区二区| 欧美日韩国产经典色站一区二区三区| 国产乱人伦偷精品视频免下载| 亚洲精品免费在线观看| 国产免费成人在线视频| 欧美日韩免费一区二区三区| 国产一区二区成人久久免费影院| 亚洲国产一区视频| 中文字幕在线观看不卡| 精品久久免费看| 欧美人牲a欧美精品| 色综合一个色综合亚洲| 夫妻av一区二区| 97se亚洲国产综合自在线| 极品美女销魂一区二区三区| 国产精品色呦呦| 亚洲欧洲av在线| 久久综合九色欧美综合狠狠| 日韩三级视频在线观看| 欧美日韩国产在线观看| 精品视频1区2区| 91麻豆国产福利在线观看| 国产综合色在线视频区| 久久精品国产成人一区二区三区| 亚洲图片欧美一区| 天堂精品中文字幕在线| 亚洲国产成人精品视频| 五月天激情综合网| 亚洲午夜国产一区99re久久| 亚洲国产一区视频| 一区二区三区在线高清| 国产精品电影一区二区三区| 久久久久97国产精华液好用吗| 欧美一级欧美三级在线观看| 日韩一区二区电影网| 91精品国产品国语在线不卡 | 91视频.com| 91污在线观看| 色婷婷久久久亚洲一区二区三区| 麻豆高清免费国产一区| 久色婷婷小香蕉久久| 蜜臀av性久久久久蜜臀aⅴ| 精品一区二区三区在线观看国产| 日本免费在线视频不卡一不卡二| 国产一区二区三区蝌蚪| 国产一区二区视频在线播放| 福利一区二区在线观看| 99视频精品全部免费在线| 国产裸体歌舞团一区二区| 国产精品一区在线观看乱码| 免费成人av在线播放| 麻豆精品一区二区| 日本欧美在线看| 久久aⅴ国产欧美74aaa| 福利一区二区在线| 国产成人综合视频| 欧美日韩极品在线观看一区| 欧美一区二区福利在线| 国产精品麻豆久久久| 一区二区在线免费| 久88久久88久久久| 成人性视频免费网站| 欧美视频日韩视频| 日韩欧美在线网站| 亚洲欧美色图小说| 日韩精品一级中文字幕精品视频免费观看| 久久精品国产99久久6| 成人夜色视频网站在线观看| 国产999精品久久久久久绿帽| 欧美三级电影一区| 精品日本一线二线三线不卡| 国产丝袜欧美中文另类| 一区二区三区精品在线观看| 偷拍日韩校园综合在线| 老司机午夜精品| 成人av网站在线观看| 久久久久97国产精华液好用吗| 亚洲精品中文在线| 另类小说视频一区二区| 极品销魂美女一区二区三区| 日本道精品一区二区三区| 日韩亚洲国产中文字幕欧美| 亚洲视频资源在线| 精品在线亚洲视频| 欧美色倩网站大全免费| 久久综合九色综合欧美亚洲| 亚洲福利国产精品| 国产成人夜色高潮福利影视| 欧美精品三级在线观看| 欧美激情一区二区三区| 日本午夜精品一区二区三区电影| 波多野结衣视频一区| 91免费版在线| 中文一区一区三区高中清不卡| 亚洲成人免费影院| 一本大道久久a久久综合| 欧美成人aa大片| 亚洲国产精品一区二区久久 | 波多野洁衣一区| 欧美精品日韩一区| 亚洲一区二区三区美女| 国产99久久久国产精品潘金| 精品国产污污免费网站入口| 亚洲男帅同性gay1069| 成人av电影免费观看| 欧美videossexotv100| 亚洲三级在线看| 成人免费高清视频在线观看| 日韩精品中文字幕一区二区三区 | 国产欧美一区二区精品性色超碰 | 成人午夜电影网站| 久久丝袜美腿综合| 免费在线观看不卡| 日韩一区二区在线观看视频| 亚洲精品免费在线观看| 国产很黄免费观看久久| 欧美mv和日韩mv的网站| 亚洲制服丝袜av| 欧美日本在线一区| 国产精品拍天天在线| 99久免费精品视频在线观看| 久久蜜桃一区二区| 成人黄色777网| 久久久久久久久久久久电影| 国产盗摄一区二区| 久久久五月婷婷| 成人一道本在线| 国产精品婷婷午夜在线观看| 成人一区在线看| 欧美极品少妇xxxxⅹ高跟鞋| 9l国产精品久久久久麻豆| 久久蜜桃一区二区| 99综合影院在线| 久久久精品日韩欧美| 成人精品视频一区二区三区| 中文一区二区完整视频在线观看| 国产aⅴ综合色| 国产精品日韩成人| 不卡av免费在线观看| 亚洲天堂免费看| 91福利国产精品| 午夜精品在线视频一区| 日韩精品在线网站| 精品一区二区三区久久| 国产精品嫩草99a| 9色porny自拍视频一区二区| 亚洲国产综合在线| 在线播放亚洲一区| 欧美在线|欧美| 天堂一区二区在线免费观看| 日韩欧美国产麻豆| 国产精品18久久久久久久久| 亚洲视频免费在线| 欧美色综合网站| 国产精品资源在线| 亚洲图片激情小说| 91精品国产91久久久久久最新毛片| 亚洲黄色av一区| 精品捆绑美女sm三区| 国内精品写真在线观看| 亚洲欧洲av一区二区三区久久| 成人免费黄色在线| 日韩va欧美va亚洲va久久| 日韩欧美亚洲国产另类| 99久久久国产精品| 亚洲图片欧美一区| 日本一区二区动态图| 91小宝寻花一区二区三区| 另类欧美日韩国产在线| 精品久久久三级丝袜| 一本久久综合亚洲鲁鲁五月天| 亚洲婷婷在线视频| 久久女同精品一区二区| 国产精品538一区二区在线| 日本一区二区三区高清不卡| 色综合久久久久综合体| 免费观看在线色综合| 国产精品久久免费看| 91麻豆精品国产自产在线| 国产高清精品在线| 免费一区二区视频| 国产精品乱码人人做人人爱| 日韩一级高清毛片| 成人动漫一区二区| 精品一区二区免费视频| 国产人伦精品一区二区|