summaryrefslogtreecommitdiffstats
path: root/test/01-inline-array-exp.txt
blob: b6509dac50d6d4a0aacb5b805e6c0dca4f18e77e (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}^2}
{A3:B4}{=2^{1,2;3,4}}
{A5:B6}{=A1:B2^2}
{A7:B8}{=2^A1:B2}
{A9:B10}{={1,2;3,4}^{5,2;4,3}}
{A11:D11}{={2,3,4,"C"}^{4,"A","B",2}}
%calc
%mode result
A1=1
B1=4
A2=9
B2=16
A3=2
B3=4
A4=8
B4=16
A5=1
B5=16
A6=81
B6=256
A7=2
B7=16
A8=512
B8=65536
A9=1
B9=4
A10=81
B10=64
A11=16
B11=#VALUE!
C11=#VALUE!
D11=#VALUE!
%check