O'Reilly logo

Practical Scientific Computing by V Zalizniak, A Muhammad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3

Statements

In the previous chapter, we learnt about the data types, expressions and operators supported by numEclipse. In this chapter, we will focus on statements including assignment statement, loops and conditional statements.

3.1 Assignment Statement

The assignment statement is the most simple statement in a programming language. In numEclipse an assignment could take different forms depending on the type of variables involved. In its simple form, it looks like the following expression.

< var_name > = < expression >

“=” is the assignment operator. This statement evaluates the expression and assigns the resulting value to the variable named on the left hand side. The left hand side or lvalue must be a valid identifier name. Identifier ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required