summaryrefslogtreecommitdiffstats
path: root/test/01-inline-array-mul.txt
blob: 2b7b1e26bd1c5dd5d5883d8f8bf525461cd9fc6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
%% Test for inline array with multiplication.
%mode init
{A1:B2}{={1,2;3,4}*10}
{A3:B4}{=10*{2,3;4,5}}
{A5:B6}{=A1:B2*2}
{A7:B8}{=3*A1:B2}
{A9:B10}{={2,3;4,5}*{9,8;7,6}}
{A11:D11}{={1,2,3,"C"}*{4,"A","B",2}}
%calc
%mode result
A1=10
B1=20
A2=30
B2=40
A3=20
B3=30
A4=40
B4=50
A5=20
B5=40
A6=60
B6=80
A7=30
B7=60
A8=90
B8=120
A9=18
B9=24
A10=28
B10=30
A11=4
B11=#VALUE!
C11=#VALUE!
D11=#VALUE!
%check