计算机专业外文翻译--matlab介绍(编辑修改稿)内容摘要:

in the remainder of the book. For some of the simple examples that we will be doing, the design process will seem like overkill。 however, as the problems that we solve get larger and larger, the process bees more and more essential to successful programming. When I was an undergraduate, one of my professors was fond of saying, “programming is easy. It is knowing what to program that is hard.” his point was forcefully driven home to me after I left university and began working in industry on larger scale software projects. I found that the most difficult port of my job was to understand the problem I was trying to solve. Once I really understood the problem, it became easy to break the problem apart into smaller, more easily manageable pieces with welldefined functions, and then to tackle those pieces one at a time. Topdown design is the process of starting with a large task and breaking it down into smaller, more easily understandable pieces, which perform a portion of the desired task. Each subtask may in turn be subdivided into smaller subtasks if necessary. Once the program is divided into small pieces, each piece can be coded and tested independently. We do not attempt to bine the subtasks into a plete task until each of the subtasks has been verified to work properly by itself. The concept of topdown design is the basis of our formal program design process. We will now introduce the details of the process, which is illustrated in figure 1 the steps involved are: 1. Clearly state the problem that you are trying to solve. Programs are usually written to fill some perceived need, but that need may not be articulated clearly by the person requesting the program. For example, a user may ask for a program to solve a system of simultaneous linear equations. This request is not clear enough to allow a programmer to design a program to meet the need。 he or she must first know much more about the problem to be solved. Is the system of equations to be solved real or plex? What is the maximum number of equations and 本科生毕业设计(论文 ) 外文翻译 unknown that the program must handle? Are there any symmetry in the equations that might be exploited to make the task easier? The program designer will have to talk with the user requesting the program, and the two of them will have e up with a clear statement of exactly what they are trying to acplish. A clear statement of the problem will prevent misunderstandings, and it will also help the program designer to properly organize his or her thoughts. In the example we were describing, a proper statement of the problem might have been: Figure 1 Design and write a program to solve a system of simultaneous linear equations having real coefficients and with up to 20 equations in 20 unknowns. 2. Define the inputs required by the program and the outputs to be produced by the program. The inputs to the program and the outputs produced by the program must be specified so that the new program will properly fit into the overall processing scheme. 本科生毕业设计(论文 ) 外文翻译 In this example, the coefficients of the equations to be solved are probably in some preexisting order, and our new program needs to be able to read them in that order. And our new program needs to be able to read them in that order. Similarly, it needs to produce the answers required by the programs that may follow it in the overall processing scheme, and to write out those answers in the format needed by the programs following it. 3. Design the algorithm that you intend to implement in the program。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。