| OCR Text |
Show ,} > ..^ 28 The Expression; B, Generalization of Operatora ScojDe If an operation is legal between two operands then it is also legal between other structures that have these operands as elements. Arrays and Lists If the dimensicas are* different between operands, then a logical "adjustment" ii moade which logically creates enough copies of the operand of smaller dimension until the dimensions are matched. Then the operation is performed as a vector operation. (a, b, c) * (x, y, z) means la * x,b * y,c *2) a * (x, y, z) means (a * x,a * y,a * z) (a^) * (x, y, z) meana (a * x,b * yfz) t Examples of Expressions; display ,,a=,, (b+2-4gc) #"£=" #if a<b then -c'else-g; Note; if h^2, q=2, c=4 then this would output on the CRT; | a= -44 EgT] •'^^-H^^Kmrnmsz^K^ |