仪器网(yiqi.com)欢迎您!

| 注册 登录
网站首页-资讯-专题- 微头条-话题-产品- 品牌库-搜索-供应商- 展会-招标-采购- 社区-知识-技术-资料库-方案-直播- 视频

问答社区

s=1+22+333+...+nnn..n,求s. 用vf, 讲一下这里的内,外循环。灰常感谢~~

流年里随心而去 2011-03-29 11:46:06 523  浏览
  • S=0FORi=1TOnP=iFORj=1TOi-1P=P*10+iENDFORS=S+PENDFOR?"S=",S根据FORj=1TOi-1P=P*10+i这样算出来,p从1开始取,Z后加在s里面,diyi个数为什么是1,不是11呢?... S=0 FOR i=1 TO n P=i FOR j=1 TO i-1 P=P*10+i ENDFOR S=S+P ENDFOR ? "S=",S 根据 FOR j=1 TO i-1 P=P*10+i 这样算出来,p从1开始取, Z后加在s里面,diyi个数为什么是1,不是11呢? 展开

参与评论

全部评论(2条)

  • liubo19850215 2011-03-30 00:00:00
    当P=1时,则P*10+I=11

    赞(9)

    回复(0)

    评论

  • 哑音shine 2011-03-30 00:00:00
    1、i=1时,p=1,j=1 to 0,不进入内循环,s=s+p=0+1 2、i=2时,p=2,j=1 to 1,内循环1次, p=2*10+2=22 s=s+p=1+22 3、i=3时,p=3,j=1 to 2,内循环2次, p=3*10+3=33 p=33*10+3=333 s=s+p=1+22+333 4、i=4时,p=4,j=1 to 3,内循环3次, p=4*10+4=44 p=44*10+4=444 p=444*10+4=4444 s=s+p=1+22+333+4444 ...... 以此类推

    赞(8)

    回复(0)

    评论

获取验证码
我已经阅读并接受《仪器网服务协议》

热门问答

s=1+22+333+...+nnn..n,求s. 用vf, 讲一下这里的内,外循环。灰常感谢~~
S=0FORi=1TOnP=iFORj=1TOi-1P=P*10+iENDFORS=S+PENDFOR?"S=",S根据FORj=1TOi-1P=P*10+i这样算出来,p从1开始取,Z后加在s里面,diyi个数为什么是1,不是11呢?... S=0 FOR i=1 TO n P=i FOR j=1 TO i-1 P=P*10+i ENDFOR S=S+P ENDFOR ? "S=",S 根据 FOR j=1 TO i-1 P=P*10+i 这样算出来,p从1开始取, Z后加在s里面,diyi个数为什么是1,不是11呢? 展开
2011-03-29 11:46:06 523 2
可以用这道题给我讲一下内循环和外循环吗?谢谢了!
 
2015-08-06 19:05:08 222 2
轿车的内循环与外循环???
轿车的内循环与外循环???桑塔纳4000,打开空调相当于已经是内循环了,不用开内循环了????想想也不对!!!其它车应该不是这样的,,求大神解答😉... 轿车的内循环与外循环???桑塔纳4000,打开空调相当于已经是内循环了,不用开内循环了???? 想想也不对!!!其它车应该不是这样的,,求大神解答😉 展开
2016-07-15 15:15:45 491 1
那位高手帮忙翻译下段英文,灰常感谢。
1.8 Block Diagram Reduction The discussion of Section 1.7 appears to imply that if the transfer function relating input r and output c in block diagram, such as Fig .1.1 is desired, a differential equation relating these two variables must... 1.8 Block Diagram Reduction The discussion of Section 1.7 appears to imply that if the transfer function relating input r and output c in block diagram, such as Fig .1.1 is desired, a differential equation relating these two variables must be obtained first. Fortunately , this is not necessary. The transfer function can be derived instead by certain algebraic manipulations of those of the subsystems or blocks. Some examples will show this block diagram reduction technique and provide some useful results. Example 1.8.3 The configuration in Fig.1.5(a),which includes a minor feedback loop, is very common in servomechanisms . Derivation of C/R by the approach of Example 1.8.2 would be laborious ,but become simple if the result in(1.33) is used. It is applied first to reduce the minor feedback loop C/M to a single block , as shown in Fig.1.5(b). but (1.33) applies again to this new loop and now yields the closed-loop transfer function. Example 1.8.4 In a tow-input system, the additional input D often represents a dis-turbance , such as a supply pressure variation in the level control example in Section 1.3 . With the additional block L , the diagram models the effect of the disturbance on the system. For linear systems the principle of superposition applies, and the total output is the sum of the outputs due to each input separately. Thus the out-put due to R is found as before, and while finding that due to D, R is put equal to zero. The rule of Example 1.8.2 applies when finding the response to D, but note that the product of G2. Note also that for R=0 the minus sign for the feedback at R can be moved to the summing junction for D. Inspection now yields. Example 1.8.5 In fig.1.6 the two feedback loops interfere with each other. The rearrangements (a) and (b) are alternative first steps to make the result in (1.33) again applicable . Verify that neither changes the system, and that applying (1.33) twice to (a) or (b) yields the closed-loop transfer function. 1.9 Conclusion In this chapter a general introduction has been given first, including physical discussion of some fundamental features of control system behavior. A level control example led to a common block diagram configuration. Laplace transforms led to the transfer function description of dynamic behavior, and block diagram reduction to the description of an interconnected system of blocks. The application of transfer functions and transforms and transforms to calculation of the response c(t) to an input r(t) and initial conditions has been demonstrated for cases where the roots of the denominator of the transform C(s) are real and distinct. This provides a framework and motivation for study of the next chapter, and a basis for detailed discussion of transient response in Chapter 3. It also allows for an introductory examination of some of the effects of feedback in the problems below. 展开
2012-02-22 06:47:13 421 2
冬季用暖风用外循环还是用内循环哪个比较好一点
 
2016-11-19 11:06:08 451 2
2002POLO的内循环外循环怎么转换?急~~~
如题... 如题 展开
2009-02-12 19:25:55 453 1
行车可以不开内循环和外循环吗?
 
2018-11-25 02:33:22 284 0
车上空调内循环与外循环有什么区别?
 
2012-03-15 09:18:47 263 2
汽车空气外循环,空气内循环有什么区别?
 
2017-09-24 23:47:26 460 2
汽车开启时属于内循环还是外循环
 
2017-09-01 04:52:13 253 1
克鲁斯内循环右边的按键是什么意思?外循环怎么开啊,求大神
 
2016-01-18 04:40:12 229 1
汽车内循环灯亮是内循环还是外循环
 
2015-05-22 04:37:55 408 3
车开暖风的时候是内循环还是外循环
 
2016-01-28 11:06:56 328 4
a平方o内循环可不可以不要,已经有外循环的情况
 
2015-05-25 06:40:00 351 1
奥迪a62.4空调内循环和外循环有什么区别
 
2014-07-28 17:12:41 244 1
各种化学工具使用方法,请注明注意事项,详细步骤,灰常感谢!!!!!
比如说烧杯等\(^o^)/
2011-08-09 11:40:30 456 2
开暖风的时候不管是内循环还是外循环都有异味怎么办?
 
2017-09-11 05:04:28 329 1
汽车驾驶室仪表台上内、外循环开关怎么用?有什么区别?
 
2010-09-16 18:22:22 341 2
单片机C程序 为什么分为内循环和外循环?我不懂。
 
2016-09-23 03:28:21 242 1
汽车开空调时一定要打开内循环或外循环吗?
只开空调或暖气不开循环可以吗?... 只开空调或暖气不开循环可以吗? 展开
2010-01-23 16:28:27 414 4

11月突出贡献榜

推荐主页

最新话题