40 likes | 151 Views
Outline — March 24. Numerical Computation in C (continued) More on Numerical Computation Programming Assignment #2 Loop and Conditional Statements. Review. Expression:– A sequence of operands and operators that, when evaluated, produce a result value
E N D
Outline — March 24 • Numerical Computation in C (continued) • More on Numerical Computation • Programming Assignment #2 • Loop and Conditional Statements Outline — March 24
Review • Expression:– A sequence of operands and operators that, when evaluated, produce a result value • Scanned left-to-right by compiler, but operators are applied in order of precedence • Assignment:– The '=' operator in an expression; stores the value on its right side into the location of the left side • Returns stored value as the value of the expression Outline — March 24
Precedence • The specification of the order in which operators of an expression are applied • Example:– pow(x,3) + 3*pow(x,2)*y + 3*x*pow(y,2)+ pow(y,3) Outline — March 24
Outline — March 24 • Numerical Computation in C (continued) • More on Numerical Computation • Programming Assignment #2 • Loop and Conditional Statements Outline — March 24