Next: Logical Expressions
Up: CS101 Lecture 8
Previous: Simple Statements
Operators (
),
Intrinsic functions (
)
- n1 = (n2 + n3) * n4 ** 2
- ans = 2 * -3**3
- 27**(1/3)
- 27**(1.0/3.0)
- x = sin(y)**2 + cos(y)**2
- Remainder = Mod(N,31)
Caution (Operator precedence, Mixed mode arithmetic, Precision, ...)
Advice: Use paranthesis liberally to group properly.
G. Sivakumar
2000-08-16