summaryrefslogtreecommitdiffstats
path: root/test/01-inline-array-div.txt
blob: 08039ce10094734e47b685341798d5e3e117a73d (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}{={30,60;90,120}/3}
{A3:B4}{=120/{2,3;4,0}}
{A5:B6}{=A1:B2/10}
{A7:B8}{=240/A1:B2}
{A9:B10}{={9,16;21,25}/{3,8;7,5}}
{A11:D11}{={4,2,3,"C"}/{2,"A","B",2}}
%calc
%mode result
A1=10
B1=20
A2=30
B2=40
A3=60
B3=40
A4=30
B4=#DIV/0!
A5=1
B5=2
A6=3
B6=4
A7=24
B7=12
A8=8
B8=6
A9=3
B9=2
A10=3
B10=5
A11=2
B11=#VALUE!
C11=#VALUE!
D11=#VALUE!
%check