Explore chapters and articles related to this topic
Python/NumPy Fundamentals
Published in Mehdi Ghayoumi, Deep Learning in Practice, 2021
An instruction that executes by the python interpreter is a statement. Some examples are as follows:import statements,assignment statement,if statements,for and while statements.A combination of variables, operators, and values (also function) needs to be evaluated as an expression (interpreter print the results). Here the assignment is a statement, and there are two evaluations for x and y. With an assignment statement, like x = 7, there is no evaluation (these are statements and just execute). Furthermore, its results create a reference from a variable. For example, x to 7, and when we use a print function for y (everything in python is a function), we can see its value.
Digital Circuit Design with Very-High-Speed Integrated Circuit Hardware Description Language
Published in A. Arockia Bazil Raj, FPGA-Based Embedded System Developer's Guide, 2018
We used the vertical bar (|), which is equivalent to the or operator, to illustrate how to express a range of values. This is a useful operator to indicate ranges that are not adjacent, for example, 0 to 4 | 6 to 10. It should be noted that the combinational circuits can also be expressed in other ways, using concurrent statements such as the with–select construct. Since the case statement is a sequential statement, one can have nested casestatements as well. A loop statement is used to repeatedly execute a sequence of sequential statements. The syntax for a loop is: [ loop_label :]iteration_scheme loop sequential statements [next [label] [when condition]; [exit [label] [when condition]; end loop [loop_label];
Parallel Execution of Ordinary Sequential Programs
Published in Hojjat Adeli, Parallel Processing in Computational Mechanics, 2020
In general, statements in a program may be executed in any order other than the given order as long as they produce the same results as when they are executed in accordance with the given sequence. In principle, two statements S1 and S2 (originally written in a program in this order) may be computed simultaneously if the following two conditions hold: S2 does not use the result of Sl.S2 does not update a variable that is an input to S1.
A Method for Backward Failure Propagation in Conceptual System Design
Published in Nuclear Science and Engineering, 2023
Ali Mansoor, Xiaoxu Diao, Carol Smidts
We need to formalize the traditional ISFA rules before performing their reversal. In traditional ISFA BRs, the mode of a component is implied given a certain combination of variables. Table II shows traditional ISFA BRs in terms of IF/Then conditional statements; these statements are converted to mathematical expressions (as shown in Table III)—using PL—to make them suitable for mathematical operations. The conditional statements are defined as implication in the PL semantics. To formalize the ISFA rules, assume that each component of a given system ‘C’ belongs to the set ‘C’ that contains all the components of the system and that each mode of a component ‘M’ belongs to the set ‘M’ that contains all the modes of the component. These modes are mutually exclusive and exhaustive. Then, a component may have multiple BRs, ‘s’, and each BR—which is a function of the input variable and the output variable of a component—is mathematically defined to represent the mapping of a component’s input and output variables onto the mode of the component:
Applying transfer learning to achieve precision marketing in an omni-channel system – a case study of a sharing kitchen platform
Published in International Journal of Production Research, 2021
Ming-Chuan Chiu, Kai-Hsiang Chuang
The omni-channel platform was built with a Linux©, Apache©, MySQL© and PHP© (LAMP) structure, which is the same as that used for Facebook©. In the Linux© operation system, the Apache phpMyAdmin© platform served as the administration tool for MySQL© and MariaDB© in order to connect directly to the web. Next, this study utilised numerous programming languages in order to build the omni-channel platform, creating complex overlapping. For example, the Android platform ran Java to connect all of the statements in the back end. This research also employed an XML© code to develop the user interface. Because these programming languages are different, we adopted PHP© as an immediate platform using the Internet to connect all of the language codes. For the same reason, we chose phyMyAdmin© as a server. Finally, this study used PHP© to communicate data to the MySQL© database server to achieve omni-channel conditions. We selected Python© to analyse all the files, and suggestions were based on customer preference in the history data.
The research of endless loop detection method based on the basic path
Published in International Journal of Computers and Applications, 2020
Xuexin Gao, Yongmin Mu, Meie Shen
From the example of Figure 2, the intermediate code which is generated by compiling the source code with GCC mainly consists of two parts: function declaration and function body. The function declaration section mainly contains the function quote index information inside GCC, which has nothing to do with the control flow extraction and can be ignored. The function body consists of or code blocks and goto jump statements. These code blocks and goto statement provide very important information for extracting the structure feature of programs. In particular, it can be seen from Figure 2 that multi conditional statement can be split into single conditional statements and jump to the appropriate code blocks by using goto statements after GCC compiling.