File: 01-inline-array-mul.txt

package info (click to toggle)
libixion 0.19.0-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,488 kB
  • sloc: cpp: 20,960; sh: 4,562; makefile: 474; python: 297
file content (35 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (3)
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