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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
|
<appendix id="qalculate-definitions-functions">
<title>Function List</title>
<sect1 id="qalculate-definitions-functions-1-Algebra">
<title>Algebra</title>
<variablelist>
<varlistentry>
<term><emphasis>Find Linear Function</emphasis></term>
<listitem>
<para><command>linearfunction(x1, y1, x2, y2)</command></para>
<para>Finds the linear function for the straight line between two distinct points.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>x1: a free value</para></listitem>
<listitem><para>y1: a free value</para></listitem>
<listitem><para>x2: a free value</para></listitem>
<listitem><para>y2: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Product</emphasis></term>
<listitem>
<para><command>product(Factor expression, Lower limit (i), Upper limit (n)[, Index variable])</command></para>
<para><command>Π</command></para><para>Corresponds to the product symbol. Multiplies factors for each x ranging from the lower to the upper limit.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Factor expression: a free value</para></listitem>
<listitem><para>Lower limit (i): an integer</para></listitem>
<listitem><para>Upper limit (n): an integer</para></listitem>
<listitem><para>Index variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Requirement</title><para>
"Upper limit (n)" >= "Lower limit (i)"
</para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Solve equation</emphasis></term>
<listitem>
<para><command>solve(Equation[, With respect to])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Equation: a free value</para></listitem>
<listitem><para>With respect to: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Solve for multiple variables</emphasis></term>
<listitem>
<para><command>multisolve(Equation vector, Variable vector)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Equation vector: a vector</para></listitem>
<listitem><para>Variable vector: a vector with an unknown variable/symbol, ...</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Requirement</title><para>
dimension("Equation vector")=dimension("Variable vector")
</para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Solve for two variables</emphasis></term>
<listitem>
<para><command>solve2(Equation 1, Equation 2[, Variable 1][, Variable 2])</command></para>
<para>Solves two equations with two unknown variables. Returns the value of the first variable.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Equation 1: a free value</para></listitem>
<listitem><para>Equation 2: a free value</para></listitem>
<listitem><para>Variable 1: an unknown variable/symbol (optional, default: x)</para></listitem>
<listitem><para>Variable 2: an unknown variable/symbol (optional, default: y)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Sum</emphasis></term>
<listitem>
<para><command>sum(Term expression, Lower limit (i), Upper limit (n)[, Index variable])</command></para>
<para><command>Σ</command></para><para>Corresponds to the sum symbol. Adds terms for each x ranging from the lower to the upper limit.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Term expression: a free value</para></listitem>
<listitem><para>Lower limit (i): an integer</para></listitem>
<listitem><para>Upper limit (n): an integer</para></listitem>
<listitem><para>Index variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Requirement</title><para>
"Upper limit (n)" >= "Lower limit (i)"
</para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Analysis">
<title>Analysis</title>
<variablelist>
<varlistentry>
<term><emphasis>Beta Function</emphasis></term>
<listitem>
<para><command>beta(argument 1, argument 2)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: an integer</para></listitem>
<listitem><para>2: an integer</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Gamma Function</emphasis></term>
<listitem>
<para><command>gamma(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Imaginary Part</emphasis></term>
<listitem>
<para><command>im(Complex number)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Complex number: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Real Part</emphasis></term>
<listitem>
<para><command>re(Complex number)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Complex number: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Calculus">
<title>Calculus</title>
<variablelist>
<varlistentry>
<term><emphasis>Derive</emphasis></term>
<listitem>
<para><command>diff(Function[, With respect to][, Order])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Function: a free value</para></listitem>
<listitem><para>With respect to: an unknown variable/symbol (optional, default: x)</para></listitem>
<listitem><para>Order: an integer >= 1 (optional, default: 1)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Extreme Values</emphasis></term>
<listitem>
<para><command>extremum(Function[, With respect to])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Function: a free value</para></listitem>
<listitem><para>With respect to: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Integrate</emphasis></term>
<listitem>
<para><command>integrate(Function[, Variable of integration][, Lower limit][, Upper limit])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Function: a free value</para></listitem>
<listitem><para>Variable of integration: an unknown variable/symbol (optional, default: x)</para></listitem>
<listitem><para>Lower limit: a free value (optional, default: undefined)</para></listitem>
<listitem><para>Upper limit: a free value (optional, default: undefined)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Combinatorics">
<title>Combinatorics</title>
<variablelist>
<varlistentry>
<term><emphasis>Binomial Coefficient</emphasis></term>
<listitem>
<para><command>binomial(Exponent, Index)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Exponent: an integer >= 1</para></listitem>
<listitem><para>Index: an integer >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Requirement</title><para>
"Exponent">="Index"
</para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Combinations</emphasis></term>
<listitem>
<para><command>comb(Objects, Size)</command></para>
<para>Returns the number of possible arrangements of an unordered list with a number of objects to choose from and a list size. If there are three objects (1, 2 and 3) that is put in a list with place for two, the alternatives are [1, 2], [1, 3], and [2, 3], and thus the number of combinations is 3.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Objects: a free value</para></listitem>
<listitem><para>Size: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Derangements</emphasis></term>
<listitem>
<para><command>derangements(Number of elements)</command></para>
<para>Returns the number of possible rearrangements of an ordered list, of a certain size, where none of the objects are on their original position. If the original list is [1, 2, 3], the possible derangements is [2, 3, 1] and [3, 1, 2], and thus the number of derangements is 2.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Number of elements: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Double Factorial</emphasis></term>
<listitem>
<para><command>factorial2(Value)</command></para>
<para>Calculates the doublefactorial of an integer. Mulitplies the argument with every second lesser positive integer (n(n-2)(n-4)...). Can also be entered as a number followed by two exclamation marks.</para><para></para><para>ex. factorial2(5) = 5!! = 5 * 3 * 1 = 15</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: an integer >= -1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Factorial</emphasis></term>
<listitem>
<para><command>factorial(Value)</command></para>
<para>Calculates the factorial of an integer. Mulitplies the argument with every lesser positive integer (n(n-1)(n-2)...2*1). Can also be entered as a number followed by one exclamation mark.</para><para></para><para>ex. factorial(5) = 5! = 5 * 4 * 3 * 2 * 1 = 120</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: an integer</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Hyperfactorial</emphasis></term>
<listitem>
<para><command>hyperfactorial(Value)</command></para>
<para>Calculates the hyperfactorial of an integer. Mulitplies the argument raised by itself with every lesser positive integer raised by themselves (1^1 * 2^2 ... n^n). </para><para></para><para>ex. hyperfactorial(3) = (3^3) * (2^2) * (1^1) = 108</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Multifactorial</emphasis></term>
<listitem>
<para><command>multifactorial(Value, Factorial)</command></para>
<para>Calculates the multifactorial of an integer. Mulitplies the argument with every x lesser positive integer (n(n-x)(n-2x)...). Can also be entered as a number followed by three or more exclamation marks.</para><para></para><para>ex. multifactorial(18, 4) = 18!!!! = 18 * 14 * 10 * 6 * 2 = 30 240</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: an integer >= 0</para></listitem>
<listitem><para>Factorial: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Permutations</emphasis></term>
<listitem>
<para><command>perm(Objects, Size)</command></para>
<para>Returns the number of possible arrangements of an ordered list with a number of objects to choose from and a list size. If there are three objects (1, 2 and 3) that is put in a list with two positions, the alternatives are [1, 2], [2, 1], [1, 3], [3, 1], [2, 3] and [3, 2], and thus the number of permutations is 6.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Objects: a free value</para></listitem>
<listitem><para>Size: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Superfactorial</emphasis></term>
<listitem>
<para><command>superfactorial(Value)</command></para>
<para>Calculates the superfactorial of an integer. Mulitplies the factorial of the argument with the factorial of every lesser positive integer (1! * 2! ... n!). </para><para></para><para>ex. superfactorial(5) = 5! * 4! * 3! * 2! * 1! = 34 560</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: an integer >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Data-Sets">
<title>Data Sets</title>
<variablelist>
<varlistentry>
<term><emphasis>Elements</emphasis></term>
<listitem>
<para><command>atom(Element[, Property])</command></para>
<para>Retrieves data from the Elements data set for a given object and property. If "info" is typed as property, all properties of the object will be listed.</para><formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Element: an object from "Elements" (use symbol, number, or name)</para></listitem>
<listitem><para>Property: name of a data property (symbol, number, name, class, or weight) (optional, default: info)</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Properties</title><para><itemizedlist spacing="compact">
<listitem><para>Symbol: symbol (key)</para></listitem>
<listitem><para>Number: number (key)</para></listitem>
<listitem><para>Name: name (key)</para></listitem>
<listitem><para>Classification: class</para><para>A number representing an element group:</para><para>1 Alkali Metal</para><para>2 Alkaline-Earth Metal</para><para>3 Lanthanide</para><para>4 Actinide</para><para>5 Transition Metal</para><para>6 Metal</para><para>7 Metalloid</para><para>8 Non-Metal</para><para>9 Halogen</para><para>10 Noble Gas</para><para>11 Transactinide</para></listitem>
<listitem><para>Weight: weight, mass</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Planets</emphasis></term>
<listitem>
<para><command>planet(Planet[, Property])</command></para>
<para>Retrieves data from the Planets data set for a given object and property. If "info" is typed as property, all properties of the object will be listed.</para><para>This data uses material from the Wikipedia articles</para><para>"Earth" (http://www.wikipedia.org/wiki/Earth),</para><para>"Jupiter (planet)" (http://www.wikipedia.org/wiki/Jupiter_(planet)),</para><para>"Mars (planet)" (http://www.wikipedia.org/wiki/Mars_(planet)),</para><para>"Mercury (planet)" (http://www.wikipedia.org/wiki/Mercury_(planet)),</para><para>"Neptune (planet)" (http://www.wikipedia.org/wiki/Neptune_(planet)),</para><para>"Pluto (planet)" (http://www.wikipedia.org/wiki/Pluto_(planet)),</para><para>"Saturn (planet)" (http://www.wikipedia.org/wiki/Saturn_(planet)),</para><para>"Uranus (planet)" (http://www.wikipedia.org/wiki/Uranus_(planet)), and</para><para>"Venus (planet)" (http://en.wikipedia.org/wiki/Venus_(planet)),</para><para>licensed under the GNU Free Documentation License (http://www.gnu.org/copyleft/fdl.html)</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Planet: an object from "Planets" (use name)</para></listitem>
<listitem><para>Property: name of a data property (name, year, speed, eccentricity, inclination, satellites, mass, density, area, gravity, or temperature) (optional, default: info)</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Properties</title><para><itemizedlist spacing="compact">
<listitem><para>Name: name (key)</para></listitem>
<listitem><para>Orbital Period (Year): year</para></listitem>
<listitem><para>Average Orbital Speed: speed</para></listitem>
<listitem><para>Eccentricity: eccentricity</para></listitem>
<listitem><para>Inclination: inclination</para></listitem>
<listitem><para>Number of Satellites: satellites</para></listitem>
<listitem><para>Mass: mass</para></listitem>
<listitem><para>Mean Density: density</para></listitem>
<listitem><para>Surface Area: area</para></listitem>
<listitem><para>Equatorial Gravity: gravity</para></listitem>
<listitem><para>Mean Surface Temperature: temperature</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Date--Time">
<title>Date & Time</title>
<variablelist>
<varlistentry>
<term><emphasis>Current Time</emphasis></term>
<listitem>
<para><command>time()</command></para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Date to Unix Timestamp</emphasis></term>
<listitem>
<para><command>timestamp([Date])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: now)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Day of Month</emphasis></term>
<listitem>
<para><command>day([Date])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: today)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Day of Week</emphasis></term>
<listitem>
<para><command>weekday([Date][, Week begins on Sunday])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: today)</para></listitem>
<listitem><para>Week begins on Sunday: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Day of Year</emphasis></term>
<listitem>
<para><command>yearday([Date])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: today)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Days between two dates</emphasis></term>
<listitem>
<para><command>days(First date, Second date[, Day counting basis][, Financial function mode])</command></para>
<para>Returns the number of days between two dates.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360, 1: real days (default), 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>First date: a date</para></listitem>
<listitem><para>Second date: a date</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 1)</para></listitem>
<listitem><para>Financial function mode: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Local Date Format</emphasis></term>
<listitem>
<para><command>localdate([Date])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: today)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Month</emphasis></term>
<listitem>
<para><command>month([Date])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: today)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Standard Date Format</emphasis></term>
<listitem>
<para><command>isodate([Date])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: today)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Unix Timestamp to Date</emphasis></term>
<listitem>
<para><command>stamptodate(Timestamp)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Timestamp: an integer</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Week of Year</emphasis></term>
<listitem>
<para><command>week([Date][, Week begins on Sunday])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: today)</para></listitem>
<listitem><para>Week begins on Sunday: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Year</emphasis></term>
<listitem>
<para><command>year([Date])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Date: a date (optional, default: today)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Years between two dates</emphasis></term>
<listitem>
<para><command>yearfrac(First date, Second date[, Day counting basis][, Financial function mode])</command></para>
<para>Returns the number of years (fractional) between two dates.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360, 1: real days (default), 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>First date: a date</para></listitem>
<listitem><para>Second date: a date</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 1)</para></listitem>
<listitem><para>Financial function mode: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Economics">
<title>Economics</title>
<sect2 id="qalculate-definitions-functions-2-Finance">
<title>Finance</title>
<variablelist>
<varlistentry>
<term><emphasis>Accrued interest of security paying at maturity</emphasis></term>
<listitem>
<para><command>accrintm(Issue date, Settlement date, Annual rate of security[, Par value][, Day counting basis])</command></para>
<para>Returns the accrued interest for a security which pays interest at maturity date.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360 (default), 1: real days, 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Issue date: a date</para></listitem>
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Annual rate of security: a free value</para></listitem>
<listitem><para>Par value: a free value (optional, default: 1000)</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Accrued interest of security with periodic interest payments</emphasis></term>
<listitem>
<para><command>accrint(Issue date, First interest, Settlement date, Annual rate of security, Par value, Frequency[, Day counting basis])</command></para>
<para>Returns accrued interest for a security which pays periodic interest.</para><para></para><para>Allowed frequencies are 1 - annual, 2 - semi-annual or 4 - quarterly. Basis is the type of day counting you want to use: 0: US 30/360 (default), 1: real days, 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Issue date: a date</para></listitem>
<listitem><para>First interest: a date</para></listitem>
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Annual rate of security: a free value</para></listitem>
<listitem><para>Par value: a free value</para></listitem>
<listitem><para>Frequency: an integer >= 1 and <= 4</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Amount received at maturity for a security bond</emphasis></term>
<listitem>
<para><command>received(Settlement date, Maturity date, Investment, Discount rate[, Day counting basis])</command></para>
<para>Returns the amount received at the maturity date for an invested security.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360 (default), 1: real days, 2: real days/360, 3: real days/365 or 4: European 30/360. The settlement date must be before maturity date.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Investment: a free value</para></listitem>
<listitem><para>Discount rate: a free value</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Compound</emphasis></term>
<listitem>
<para><command>compound(Principal, Nominal interest rate, Periods per year, Years)</command></para>
<para>Returns the value of an investment, given the principal, nominal interest rate, compounding frequency and time.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Principal: a free value</para></listitem>
<listitem><para>Nominal interest rate: a free value</para></listitem>
<listitem><para>Periods per year: a free value</para></listitem>
<listitem><para>Years: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Discount rate for a security</emphasis></term>
<listitem>
<para><command>disc(Settlement date, Maturity date, Price per $100 face value, Redemption[, Day counting basis])</command></para>
<para>Returns the discount rate for a security.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360 (default), 1: real days, 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Price per $100 face value: a free value</para></listitem>
<listitem><para>Redemption: a free value</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Dollar Decimal</emphasis></term>
<listitem>
<para><command>dollarde(Fractional dollar, Denominator of fraction)</command></para>
<para>Converts a dollar price expressed as a fraction into a dollar price expressed as a decimal number.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Fractional dollar: a free value</para></listitem>
<listitem><para>Denominator of fraction: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Dollar Fraction</emphasis></term>
<listitem>
<para><command>dollarfr(Decimal dollar, Denominator of fraction)</command></para>
<para>Converts a decimal dollar price into a dollar price expressed as a fraction.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Decimal dollar: a free value</para></listitem>
<listitem><para>Denominator of fraction: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Effective Interest Rate</emphasis></term>
<listitem>
<para><command>effect(Nominal interest rate, Periods)</command></para>
<para>Calculates the effective interest for a given nominal rate.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Nominal interest rate: a free value</para></listitem>
<listitem><para>Periods: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Future Value</emphasis></term>
<listitem>
<para><command>fv(Interest rate, Number of periods, Payment made each period[, Present value][, Type])</command></para>
<para>Computes the future value of an investment. This is based on periodic, constant payments and a constant interest rate.</para><para></para><para>If type = 1 then the payment is made at the beginning of the period, If type = 0 (or omitted) it is made at the end of each period.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Interest rate: a free value</para></listitem>
<listitem><para>Number of periods: a free value</para></listitem>
<listitem><para>Payment made each period: a free value</para></listitem>
<listitem><para>Present value: a free value (optional, default: 0)</para></listitem>
<listitem><para>Type: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Interest paid on a given period of an investment (ISPMT)</emphasis></term>
<listitem>
<para><command>ispmt(Periodic interest rate, Amortizement period, Number of periods, Present value)</command></para>
<para>Calculates the interest paid on a given period of an investment.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Periodic interest rate: a free value</para></listitem>
<listitem><para>Amortizement period: an integer >= 1</para></listitem>
<listitem><para>Number of periods: an integer >= 1</para></listitem>
<listitem><para>Present value: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Interest rate for a fully invested security</emphasis></term>
<listitem>
<para><command>intrate(Settlement date, Maturity date, Investment, Redemption[, Day counting basis])</command></para>
<para>Returns the interest rate for a fully invested security.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360 (default), 1: real days, 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Investment: a free value</para></listitem>
<listitem><para>Redemption: a free value</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Level-Coupon Bond</emphasis></term>
<listitem>
<para><command>level_coupon(Face value, Coupon rate, Coupons per year, Years, Market interest rate)</command></para>
<para>Calculates the value of a level-coupon bond.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Face value: a free value</para></listitem>
<listitem><para>Coupon rate: a free value</para></listitem>
<listitem><para>Coupons per year: a free value</para></listitem>
<listitem><para>Years: a free value</para></listitem>
<listitem><para>Market interest rate: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Nominal Interest Rate</emphasis></term>
<listitem>
<para><command>nominal(Effective interest rate, Periods)</command></para>
<para>Calculates the nominal interest rate from a given effective interest rate compounded at given intervals.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Effective interest rate: a free value</para></listitem>
<listitem><para>Periods: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Number of coupons to be paid</emphasis></term>
<listitem>
<para><command>coupnum(Settlement date, Maturity date, Frequency[, Day counting basis])</command></para>
<para>Returns the number of coupons to be paid between the settlement and the maturity.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360 (default), 1: real days, 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Frequency: an integer >= 1 and <= 12</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Payment for a loan</emphasis></term>
<listitem>
<para><command>pmt(Rate, Number of periods, Present value[, Future value][, Type])</command></para>
<para>Returns the amount of payment for a loan based on a constant interest rate and constant payments (each payment is equal amount).</para><para></para><para>If type = 1 then the payment is made at the beginning of the period, If type = 0 (or omitted) it is made at the end of each period.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Rate: a free value</para></listitem>
<listitem><para>Number of periods: a free value</para></listitem>
<listitem><para>Present value: a free value</para></listitem>
<listitem><para>Future value: a free value (optional, default: 0)</para></listitem>
<listitem><para>Type: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Payment of an annuity going towards interest (IPMT)</emphasis></term>
<listitem>
<para><command>ipmt(Periodic interest rate, Period, Number of periods, Present value[, Future value][, Type])</command></para>
<para>Calculates the amount of a payment of an annuity going towards interest.</para><para></para><para>Type defines the due date. 1 for payment at the beginning of a period and 0 (default) for payment at the end of a period.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Periodic interest rate: a free value</para></listitem>
<listitem><para>Period: an integer >= 1</para></listitem>
<listitem><para>Number of periods: an integer >= 1</para></listitem>
<listitem><para>Present value: a free value</para></listitem>
<listitem><para>Future value: a free value (optional, default: 0)</para></listitem>
<listitem><para>Type: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Payment of an annuity going towards principal (PPMT)</emphasis></term>
<listitem>
<para><command>ppmt(Periodic interest rate, Amortizement period, Number of periods, Present value[, Desired future value][, Type])</command></para>
<para>Calculates the amount of a payment of an annuity going towards principal.</para><para></para><para>Type defines the due date. 1 for payment at the beginning of a period and 0 (default) for payment at the end of a period.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Periodic interest rate: a free value</para></listitem>
<listitem><para>Amortizement period: an integer >= 1</para></listitem>
<listitem><para>Number of periods: an integer >= 1</para></listitem>
<listitem><para>Present value: a free value</para></listitem>
<listitem><para>Desired future value: a free value (optional, default: 0)</para></listitem>
<listitem><para>Type: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Periods for investment to attain desired value</emphasis></term>
<listitem>
<para><command>g_duration(Rate, Present value, Future value)</command></para>
<para>Returns the number of periods needed for an investment to attain a desired value.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Rate: a free value</para></listitem>
<listitem><para>Present value: a free value</para></listitem>
<listitem><para>Future value: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Periods of an investment</emphasis></term>
<listitem>
<para><command>nper(Interest rate, Payment made each period, Present value[, Future value][, Type])</command></para>
<para>Calculates number of periods of an investment based on periodic constant payments and a constant interest rate.</para><para></para><para>Type defines the due date. 1 for payment at the beginning of a period and 0 (default) for payment at the end of a period.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Interest rate: a free value</para></listitem>
<listitem><para>Payment made each period: a free value</para></listitem>
<listitem><para>Present value: a free value</para></listitem>
<listitem><para>Future value: a free value (optional, default: 0)</para></listitem>
<listitem><para>Type: a free value (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Present Value</emphasis></term>
<listitem>
<para><command>pv(Interest rate, Number of periods, Payment made each period[, Future value][, Type])</command></para>
<para>Returns the present value of an investment.</para><para></para><para>If type = 1 then the payment is made at the beginning of the period, If type = 0 (or omitted) it is made at the end of each period.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Interest rate: a free value</para></listitem>
<listitem><para>Number of periods: a free value</para></listitem>
<listitem><para>Payment made each period: a free value</para></listitem>
<listitem><para>Future value: a free value (optional, default: 0)</para></listitem>
<listitem><para>Type: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Price per $100 face value of a security</emphasis></term>
<listitem>
<para><command>pricemat(Settlement date, Maturity date, Issue date, Discount rate, Annual yield[, Day counting basis])</command></para>
<para>Calculates and returns the price per $100 face value of a security. The security pays interest at maturity.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360 (default), 1: real days, 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Issue date: a date</para></listitem>
<listitem><para>Discount rate: a free value</para></listitem>
<listitem><para>Annual yield: a free value</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Price per $100 face value of a security bond</emphasis></term>
<listitem>
<para><command>pricedisc(Settlement date, Maturity date, Discount, Redemption[, Day counting basis])</command></para>
<para>Calculates and returns the price per $100 face value of a security bond. The security does not pay interest at maturity.</para><para></para><para>Basis is the type of day counting you want to use: 0: US 30/360 (default), 1: real days, 2: real days/360, 3: real days/365 or 4: European 30/360.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Discount: a free value</para></listitem>
<listitem><para>Redemption: a free value</para></listitem>
<listitem><para>Day counting basis: an integer >= 0 and <= 4 (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Return on continuously compounded interest</emphasis></term>
<listitem>
<para><command>continuous(Principal, Interest rate, Years)</command></para>
<para>Calculates the return on continuously compounded interest, given the principal, nominal rate and time in years.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Principal: a free value</para></listitem>
<listitem><para>Interest rate: a free value</para></listitem>
<listitem><para>Years: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Straight Line Depreciation</emphasis></term>
<listitem>
<para><command>sln(Cost, Salvage value, Life)</command></para>
<para>Determines the straight line depreciation of an asset for a single period.</para><para></para><para>Cost is the amount you paid for the asset. Salvage is the value of the asset at the end of the period. Life is the number of periods over which the asset is depreciated. SLN divides the cost evenly over the life of an asset.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Cost: a free value</para></listitem>
<listitem><para>Salvage value: a free value</para></listitem>
<listitem><para>Life: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Sum-of-Years Digits Depreciation</emphasis></term>
<listitem>
<para><command>syd(Cost, Salvage value, Life, Period)</command></para>
<para>Calculates the sum-of-years digits depreciation for an asset based on its cost, salvage value, anticipated life, and a particular period. This method accelerates the rate of the depreciation, so that more depreciation expense occurs in earlier periods than in later ones. The depreciable cost is the actual cost minus the salvage value. The useful life is the number of periods (typically years) over which the asset is depreciated.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Cost: a free value</para></listitem>
<listitem><para>Salvage value: a free value</para></listitem>
<listitem><para>Life: a free value</para></listitem>
<listitem><para>Period: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Treasury Bill Equivalent</emphasis></term>
<listitem>
<para><command>tbilleq(Settlement date, Maturity date, Discount rate)</command></para>
<para>Returns the bond equivalent for a treasury bill.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Discount rate: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Treasury Bill Price</emphasis></term>
<listitem>
<para><command>tbillprice(Settlement date, Maturity date, Discount rate)</command></para>
<para>Returns the price per $100 value for a treasury bill.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Discount rate: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Treasury Bill Yield</emphasis></term>
<listitem>
<para><command>tbillyield(Settlement date, Maturity date, Price per $100 face value)</command></para>
<para>Returns the yield for a treasury bill.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Settlement date: a date</para></listitem>
<listitem><para>Maturity date: a date</para></listitem>
<listitem><para>Price per $100 face value: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Zero Coupon</emphasis></term>
<listitem>
<para><command>zero_coupon(Face value, Interest rate, Years)</command></para>
<para>Calculates the value of a zero-coupon (pure discount) bond.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Face value: a free value</para></listitem>
<listitem><para>Interest rate: a free value</para></listitem>
<listitem><para>Years: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Microeconomics">
<title>Microeconomics</title>
<variablelist>
<varlistentry>
<term><emphasis>Elasticity</emphasis></term>
<listitem>
<para><command>elasticity(Demand function, Price[, Price variable])</command></para>
<para>Calculates the demand elesticity. Also works for supply elasticity, income elasticity, cross-price elasticity, etc. Just replace demand, with supply, or price with income...</para><para></para><para>Ex. elasticity(100-x^2, 3) calculates the demand elasticity when the price is 3 for the function "Q = 100 - x^2" where x is the default price variable.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Demand function: a free value</para></listitem>
<listitem><para>Price: a free value</para></listitem>
<listitem><para>Price variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Exponents--Logarithms">
<title>Exponents & Logarithms</title>
<variablelist>
<varlistentry>
<term><emphasis>10 raised the to power X</emphasis></term>
<listitem>
<para><command>exp10(Exponent)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Exponent: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>2 raised the to power X</emphasis></term>
<listitem>
<para><command>exp2(Exponent)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Exponent: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Base-10 Logrithm</emphasis></term>
<listitem>
<para><command>log10(Value)</command></para>
<para>Returns the base n logarithm.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a number >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Base-2 Logrithm</emphasis></term>
<listitem>
<para><command>log2(Value)</command></para>
<para>Returns the base n logarithm.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a number >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Base-N Logarithm</emphasis></term>
<listitem>
<para><command>log(Value[, Base])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a number that is nonzero</para></listitem>
<listitem><para>Base: a number that is nonzero (optional, default: e)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Complex Exponential (Cis)</emphasis></term>
<listitem>
<para><command>cis(Exponent)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Exponent: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Cube Root</emphasis></term>
<listitem>
<para><command>cbrt(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Exponential (e^x)</emphasis></term>
<listitem>
<para><command>exp(Exponent)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Exponent: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Natural Logarithm</emphasis></term>
<listitem>
<para><command>ln(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a number that is nonzero</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Nth root</emphasis></term>
<listitem>
<para><command>root(Base, Exponent)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Base: a free value</para></listitem>
<listitem><para>Exponent: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Square</emphasis></term>
<listitem>
<para><command>sq(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Square Root</emphasis></term>
<listitem>
<para><command>sqrt(Value)</command></para>
<para><command>√</command></para><formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Square root (x * pi)</emphasis></term>
<listitem>
<para><command>sqrtpi(Non-negative value)</command></para>
<para>Returns the non-negative square root of x * pi</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Non-negative value: a number >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>X raised to the power Y</emphasis></term>
<listitem>
<para><command>pow(Base, Exponent)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Base: a free value</para></listitem>
<listitem><para>Exponent: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Geometry">
<title>Geometry</title>
<sect2 id="qalculate-definitions-functions-2-Circle">
<title>Circle</title>
<variablelist>
<varlistentry>
<term><emphasis>Circle Area</emphasis></term>
<listitem>
<para><command>circle(Radius)</command></para>
<para>Calculates the area of a circle using the radius</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radius: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Circle Circumference</emphasis></term>
<listitem>
<para><command>circumference(Radius)</command></para>
<para>Calculates the area of a circle using the radius</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radius: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Cone">
<title>Cone</title>
<variablelist>
<varlistentry>
<term><emphasis>Cone Volume</emphasis></term>
<listitem>
<para><command>cone(Radius, Height)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radius: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Surface Area of Cone</emphasis></term>
<listitem>
<para><command>cone_sa(Radius, Height)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radius: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Cube">
<title>Cube</title>
<variablelist>
<varlistentry>
<term><emphasis>Cube Volume</emphasis></term>
<listitem>
<para><command>cube(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Surface Area of Cube</emphasis></term>
<listitem>
<para><command>cube_sa(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Cylinder">
<title>Cylinder</title>
<variablelist>
<varlistentry>
<term><emphasis>Cylinder Volume</emphasis></term>
<listitem>
<para><command>cylinder(Radius, Height)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radius: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Surface Area of Cylinder</emphasis></term>
<listitem>
<para><command>cylinder_sa(Radius, Height)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radius: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Parallelogram">
<title>Parallelogram</title>
<variablelist>
<varlistentry>
<term><emphasis>Parallelogram Area</emphasis></term>
<listitem>
<para><command>parallelogram(Base, Height)</command></para>
<para>Calculates the area of a four-sided figure whose opposite sides are both parallel and equal in length.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Base: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Parallelogram Perimeter</emphasis></term>
<listitem>
<para><command>parallelogram_perimeter(Side A, Side B)</command></para>
<para>Calculates the perimeter of a four-sided figure whose opposite sides are both parallel and equal in length.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Side A: a free value</para></listitem>
<listitem><para>Side B: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Prism">
<title>Prism</title>
<variablelist>
<varlistentry>
<term><emphasis>Surface Area of Rectangular Prism</emphasis></term>
<listitem>
<para><command>rectprism_sa(Length, Width, Height)</command></para>
<para>Calculates the surface area of a prism with rectangular base.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length: a free value</para></listitem>
<listitem><para>Width: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Volume of Rectangular Prism</emphasis></term>
<listitem>
<para><command>rectprism(Length, Width, Height)</command></para>
<para>Calculates the volume of a prism with rectangular base.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length: a free value</para></listitem>
<listitem><para>Width: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Volume of Triangular Prism</emphasis></term>
<listitem>
<para><command>triangleprism(Length, Width, Height)</command></para>
<para>Calculates the volume of a prism with triangular base.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length: a free value</para></listitem>
<listitem><para>Width: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Pyramid">
<title>Pyramid</title>
<variablelist>
<varlistentry>
<term><emphasis>Height of Regular Tetrahedron</emphasis></term>
<listitem>
<para><command>tetrahedron_height(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Height of Square Pyramid</emphasis></term>
<listitem>
<para><command>sqpyramid_height(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Pyramid Volume</emphasis></term>
<listitem>
<para><command>pyramid(Length of base, Width of base, Height)</command></para>
<para>Calculates the volume of a 3-dimensional shape standing on a rectangular base and terminating in a point at the top.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of base: a free value</para></listitem>
<listitem><para>Width of base: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Surface Area of Regular Tetrahedron</emphasis></term>
<listitem>
<para><command>tetrahedron_sa(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Surface Area of Square Pyramid</emphasis></term>
<listitem>
<para><command>sqpyramid_sa(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Volume of Regular Tetrahedron</emphasis></term>
<listitem>
<para><command>tetrahedron(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Volume of Square Pyramid</emphasis></term>
<listitem>
<para><command>sqpyramid(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Rectangle">
<title>Rectangle</title>
<variablelist>
<varlistentry>
<term><emphasis>Rectangle Area</emphasis></term>
<listitem>
<para><command>rect(Length, Width)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length: a free value</para></listitem>
<listitem><para>Width: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Rectangle Perimeter</emphasis></term>
<listitem>
<para><command>rect_perimeter(Length, Width)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length: a free value</para></listitem>
<listitem><para>Width: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Sphere">
<title>Sphere</title>
<variablelist>
<varlistentry>
<term><emphasis>Sphere Volume</emphasis></term>
<listitem>
<para><command>sphere(Radius)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radius: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Surface Area of Sphere</emphasis></term>
<listitem>
<para><command>sphere_sa(Radius)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radius: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Square">
<title>Square</title>
<variablelist>
<varlistentry>
<term><emphasis>Square Area</emphasis></term>
<listitem>
<para><command>square(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Square Perimeter</emphasis></term>
<listitem>
<para><command>square_perimeter(Length of side)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Length of side: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Trapezoid">
<title>Trapezoid</title>
<variablelist>
<varlistentry>
<term><emphasis>Trapezoid Area</emphasis></term>
<listitem>
<para><command>trapezoid(Side A, Side B, Height)</command></para>
<para>Calculates the area of a four-sided figure with two parallel sides.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Side A: a free value</para></listitem>
<listitem><para>Side B: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Triangle">
<title>Triangle</title>
<variablelist>
<varlistentry>
<term><emphasis>Hypotenuse</emphasis></term>
<listitem>
<para><command>hypot(Side A, Side B)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Side A: a free value</para></listitem>
<listitem><para>Side B: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Triangle Area</emphasis></term>
<listitem>
<para><command>triangle(Base, Height)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Base: a free value</para></listitem>
<listitem><para>Height: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Triangle Perimeter</emphasis></term>
<listitem>
<para><command>triangle_perimeter(Side A, Side B)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Side A: a free value</para></listitem>
<listitem><para>Side B: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Logical">
<title>Logical</title>
<variablelist>
<varlistentry>
<term><emphasis>Bitwise Exclusive OR</emphasis></term>
<listitem>
<para><command>bitxor(Value 1, Value 2)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value 1: an integer or a vector</para></listitem>
<listitem><para>Value 2: an integer or a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Bitwise Shift</emphasis></term>
<listitem>
<para><command>shift(Number, Bits)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Number: an integer</para></listitem>
<listitem><para>Bits: an integer</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>For...Do</emphasis></term>
<listitem>
<para><command>for(Initial value of counter, Counter variable, For condition, Counter update function, Initial value, Do function, Value variable)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Initial value of counter: a free value</para></listitem>
<listitem><para>Counter variable: an unknown variable/symbol</para></listitem>
<listitem><para>For condition: a free value</para></listitem>
<listitem><para>Counter update function: a free value</para></listitem>
<listitem><para>Initial value: a free value</para></listitem>
<listitem><para>Do function: a free value</para></listitem>
<listitem><para>Value variable: an unknown variable/symbol</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>If...Then...Else</emphasis></term>
<listitem>
<para><command>if(Condition, Expression if condition is met, Expression if condition is NOT met)</command></para>
<para>Tests a condition and returns a value depending on the result.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Condition: a real number</para></listitem>
<listitem><para>Expression if condition is met: a free value</para></listitem>
<listitem><para>Expression if condition is NOT met: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Logical Exclusive OR</emphasis></term>
<listitem>
<para><command>xor(Value 1, Value 2)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value 1: a free value</para></listitem>
<listitem><para>Value 2: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Matrices--Vectors">
<title>Matrices & Vectors</title>
<variablelist>
<varlistentry>
<term><emphasis>Adjugate (Adjoint)</emphasis></term>
<listitem>
<para><command>adj(Matrix)</command></para>
<para>Calculates the adjugate or adjoint of a matrix.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a square matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Cofactor</emphasis></term>
<listitem>
<para><command>cofactor(Matrix, Row, Column)</command></para>
<para>Calculates the cofactor of the element at specified position.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a matrix</para></listitem>
<listitem><para>Row: an integer >= 1</para></listitem>
<listitem><para>Column: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Columns</emphasis></term>
<listitem>
<para><command>columns(Matrix)</command></para>
<para>Returns the number of columns in a matrix.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Construct Matrix</emphasis></term>
<listitem>
<para><command>matrix(Rows, Columns, Elements)</command></para>
<para>Returns a matrix with specified dimensions and listed elements. Omitted elements are set to zero.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Rows: an integer >= 1</para></listitem>
<listitem><para>Columns: an integer >= 1</para></listitem>
<listitem><para>Elements: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Construct Vector</emphasis></term>
<listitem>
<para><command>vector([argument 1], ...)</command></para>
<para>Returns a vector with listed elements.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value (optional)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Convert Matrix to Vector</emphasis></term>
<listitem>
<para><command>matrix2vector(Matrix)</command></para>
<para>Puts each element of a matrix in vertical order in a vector.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Cross Product</emphasis></term>
<listitem>
<para><command>cross(Vector 1, Vector 2)</command></para>
<para>Calculates the cross product of a 3-dimensional vector.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector 1: a vector that fulfills the condition: "dimension(\x)==3"</para></listitem>
<listitem><para>Vector 2: a vector that fulfills the condition: "dimension(\x)==3"</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Determinant</emphasis></term>
<listitem>
<para><command>det(Matrix)</command></para>
<para>Calculates the determinant of a matrix.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a square matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Dimension</emphasis></term>
<listitem>
<para><command>dimension(Vector)</command></para>
<para>Returns the number of elements in a vector.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Element</emphasis></term>
<listitem>
<para><command>element(Matrix/vector, Row/index[, Column])</command></para>
<para>Returns the element at specified position in a matrix (row and column) or vector (index).</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix/vector: a vector</para></listitem>
<listitem><para>Row/index: an integer >= 1</para></listitem>
<listitem><para>Column: an integer (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Elements</emphasis></term>
<listitem>
<para><command>elements(Matrix or vector)</command></para>
<para>Returns the number of elements in a matrix or vector.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix or vector: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Export To CSV File</emphasis></term>
<listitem>
<para><command>export(Matrix/vector, Filename[, Separator])</command></para>
<para>Exports a matrix to a CSV data file.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix/vector: a vector</para></listitem>
<listitem><para>Filename: a valid file name</para></listitem>
<listitem><para>Separator: a text string (optional, default: ,)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Extract Column as Vector</emphasis></term>
<listitem>
<para><command>column(Matrix, Column)</command></para>
<para>Returns a column in a matrix as a vector.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a matrix</para></listitem>
<listitem><para>Column: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Extract row as vector</emphasis></term>
<listitem>
<para><command>row(Matrix, Row)</command></para>
<para>Returns a row in a matrix as a vector.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a matrix</para></listitem>
<listitem><para>Row: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Generate Vector</emphasis></term>
<listitem>
<para><command>genvector(Function, Min, Max, Dimension / Step size[, Variable][, Use step size])</command></para>
<para>Returns a vector generated from a function with a variable (default x) running from min to max. The fourth argument is either the requested number of elements if the sixth argument is false (default) or the step between each value of the variable.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Function: a free value</para></listitem>
<listitem><para>Min: a free value</para></listitem>
<listitem><para>Max: a free value</para></listitem>
<listitem><para>Dimension / Step size: a free value</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
<listitem><para>Use step size: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Identity</emphasis></term>
<listitem>
<para><command>identity(Matrix or rows/columns)</command></para>
<para>Returns the identity matrix of a matrix or with specified number of rows/columns.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix or rows/columns: an integer >= 1 or a square matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Load CSV File</emphasis></term>
<listitem>
<para><command>load(Filename[, First data row][, Separator])</command></para>
<para>Returns a matrix imported from a CSV data file.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Filename: a valid file name</para></listitem>
<listitem><para>First data row: an integer >= 1 (optional, default: 1)</para></listitem>
<listitem><para>Separator: a text string (optional, default: ,)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Matrix Area</emphasis></term>
<listitem>
<para><command>area(Matrix, Start row, Start column, End row, End column)</command></para>
<para>Returns a part of a matrix.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a matrix</para></listitem>
<listitem><para>Start row: an integer >= 1</para></listitem>
<listitem><para>Start column: an integer >= 1</para></listitem>
<listitem><para>End row: an integer >= 1</para></listitem>
<listitem><para>End column: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Matrix Inverse</emphasis></term>
<listitem>
<para><command>inverse(Matrix)</command></para>
<para>Calculates the inverse of a matrix. The inverse is the matrix that multiplied by the original matrix equals the identity matrix (AB = BA = I).</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a square matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Merge Vectors</emphasis></term>
<listitem>
<para><command>mergevectors(Vector 1[, Vector 2], ...)</command></para>
<para>Returns a vector with the elements from two vectors.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector 1: a vector</para></listitem>
<listitem><para>Vector 2: a vector (optional)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Norm (length)</emphasis></term>
<listitem>
<para><command>norm(Vector)</command></para>
<para>Calculates the norm/length of a vector.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Permanent</emphasis></term>
<listitem>
<para><command>permanent(Matrix)</command></para>
<para>Calculates the permanent of a matrix. The permanent differs from a determinant in that all signs in the expansion by minors are taken as positive.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a square matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Rank</emphasis></term>
<listitem>
<para><command>rank(Vector[, Ascending])</command></para>
<para>Returns a vector with values of elements replaced with their mutual ranks.</para><para></para><para>ex. rank([6, 1, 4]) = [3, 1, 2]</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
<listitem><para>Ascending: a boolean (0 or 1) (optional, default: 1)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Rows</emphasis></term>
<listitem>
<para><command>rows(Matrix)</command></para>
<para>Returns the number of rows in a matrix.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Sort</emphasis></term>
<listitem>
<para><command>sort(Vector[, Ascending])</command></para>
<para>Returns a sorted vector.</para><para></para><para>ex. sort([6, 1, 4])=[1, 4, 6]</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
<listitem><para>Ascending: a boolean (0 or 1) (optional, default: 1)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Transpose</emphasis></term>
<listitem>
<para><command>transpose(Matrix)</command></para>
<para>Returns the transpose of a matrix.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Matrix: a matrix</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Vector Limits</emphasis></term>
<listitem>
<para><command>limits(Vector, Lower limit, Upper limit)</command></para>
<para>Returns a part of a vector between two positions.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
<listitem><para>Lower limit: an integer</para></listitem>
<listitem><para>Upper limit: an integer</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Miscellaneous">
<title>Miscellaneous</title>
<variablelist>
<varlistentry>
<term><emphasis>Body Mass Index (BMI)</emphasis></term>
<listitem>
<para><command>bmi(Weight, Length)</command></para>
<para>Calculates the Body Mass Index. The resulting BMI-value is sometimes interpreted as follows (although varies with age, sex, etc.):</para><para></para><para>Underweight < 18.5</para><para>Normal weight 18.5-25</para><para>Overweight 25-30</para><para>Obesity > 30</para><para></para><para>Note that you must use units for weight (ex. 59kg) and length (ex. 174cm).</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Weight: a free value</para></listitem>
<listitem><para>Length: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Kronecker Delta</emphasis></term>
<listitem>
<para><command>kronecker(Value 1 (i)[, Value 2 (j)])</command></para>
<para>Returns 0 if i != j and 1 if i = j.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value 1 (i): a real number</para></listitem>
<listitem><para>Value 2 (j): a real number (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Riemann Zeta</emphasis></term>
<listitem>
<para><command>zeta(Integral point)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Integral point: an integer >= 1 and <= 2.1474836E9</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Roman Number</emphasis></term>
<listitem>
<para><command>roman(Roman number)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Roman number: a text string</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Number-Theory">
<title>Number Theory</title>
<variablelist>
<varlistentry>
<term><emphasis>Absolute Value</emphasis></term>
<listitem>
<para><command>abs(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Greatest Common Divisor</emphasis></term>
<listitem>
<para><command>gcd(1st value, 2nd value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1st value: a free value that is rational (polynomial)</para></listitem>
<listitem><para>2nd value: a free value that is rational (polynomial)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Least Common Multiplier</emphasis></term>
<listitem>
<para><command>lcm(1st value, 2nd value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1st value: a free value that is rational (polynomial)</para></listitem>
<listitem><para>2nd value: a free value that is rational (polynomial)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
<sect2 id="qalculate-definitions-functions-2-Arithmetics">
<title>Arithmetics</title>
<variablelist>
<varlistentry>
<term><emphasis>Add</emphasis></term>
<listitem>
<para><command>add(Terms)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Terms: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Denominator</emphasis></term>
<listitem>
<para><command>denominator(Number)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Number: a rational number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Divide</emphasis></term>
<listitem>
<para><command>divide(Numerator, Denominator)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Numerator: a free value</para></listitem>
<listitem><para>Denominator: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Modulus</emphasis></term>
<listitem>
<para><command>mod(Numerator, Denominator)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Numerator: a real number</para></listitem>
<listitem><para>Denominator: a real number that is nonzero</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Multiply</emphasis></term>
<listitem>
<para><command>multiply(Factors)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Factors: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Negate</emphasis></term>
<listitem>
<para><command>neg(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Numerator</emphasis></term>
<listitem>
<para><command>numerator(Number)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Number: a rational number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Raise</emphasis></term>
<listitem>
<para><command>raise(Base, Exponent)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Base: a free value</para></listitem>
<listitem><para>Exponent: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Reciprocal</emphasis></term>
<listitem>
<para><command>inv(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Remainder</emphasis></term>
<listitem>
<para><command>rem(Numerator, Denominator)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Numerator: a real number</para></listitem>
<listitem><para>Denominator: a real number that is nonzero</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Signum</emphasis></term>
<listitem>
<para><command>sgn(Number)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Number: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Subtract</emphasis></term>
<listitem>
<para><command>subtract(Terms)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Terms: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Integers">
<title>Integers</title>
<variablelist>
<varlistentry>
<term><emphasis>Even</emphasis></term>
<listitem>
<para><command>even(Number)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Number: an integer</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Odd</emphasis></term>
<listitem>
<para><command>odd(Number)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Number: an integer</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Number-Bases">
<title>Number Bases</title>
<variablelist>
<varlistentry>
<term><emphasis>Binary</emphasis></term>
<listitem>
<para><command>bin(Binary number)</command></para>
<para>Returns a decimal integer from a binary number</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Binary number: a text string</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Hexadecimal</emphasis></term>
<listitem>
<para><command>hex(Hexadecimal number)</command></para>
<para>Returns a decimal value from a hexadecimal number</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Hexadecimal number: a text string</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Number Base</emphasis></term>
<listitem>
<para><command>base(Number, Base)</command></para>
<para>Returns a decimal integer from a number of specified base between 2 and 36</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Number: a text string</para></listitem>
<listitem><para>Base: an integer >= 2 and <= 36</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Octal</emphasis></term>
<listitem>
<para><command>oct(Octal number)</command></para>
<para>Returns a decimal integer from an octal number</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Octal number: a text string</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Polynomials">
<title>Polynomials</title>
<variablelist>
<varlistentry>
<term><emphasis>Coefficient</emphasis></term>
<listitem>
<para><command>coeff(Polynomial, Number[, Variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Polynomial: a free value that is rational (polynomial)</para></listitem>
<listitem><para>Number: an integer >= 0</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Content Part</emphasis></term>
<listitem>
<para><command>pcontent(Polynomial[, Variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Polynomial: a free value that is rational (polynomial)</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Leading Coefficient</emphasis></term>
<listitem>
<para><command>lcoeff(Polynomial[, Variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Polynomial: a free value that is rational (polynomial)</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Lowest Degree (Valuation)</emphasis></term>
<listitem>
<para><command>ldegree(Polynomial[, Variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Polynomial: a free value that is rational (polynomial)</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Polynomial Degree</emphasis></term>
<listitem>
<para><command>degree(Polynomial[, Variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Polynomial: a free value that is rational (polynomial)</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Primitive Part</emphasis></term>
<listitem>
<para><command>primpart(Polynomial[, Variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Polynomial: a free value that is rational (polynomial)</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Trailing Coefficient</emphasis></term>
<listitem>
<para><command>tcoeff(Polynomial[, Variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Polynomial: a free value that is rational (polynomial)</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Unit Part</emphasis></term>
<listitem>
<para><command>punit(Polynomial[, Variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Polynomial: a free value that is rational (polynomial)</para></listitem>
<listitem><para>Variable: an unknown variable/symbol (optional, default: x)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Rounding">
<title>Rounding</title>
<variablelist>
<varlistentry>
<term><emphasis>Extract Fractional Part</emphasis></term>
<listitem>
<para><command>frac(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Extract Integer Part</emphasis></term>
<listitem>
<para><command>int(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Round</emphasis></term>
<listitem>
<para><command>round(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Round Downwards</emphasis></term>
<listitem>
<para><command>floor(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Round Towards Zero</emphasis></term>
<listitem>
<para><command>trunc(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Round Upwards</emphasis></term>
<listitem>
<para><command>ceil(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Statistics">
<title>Statistics</title>
<variablelist>
<varlistentry>
<term><emphasis>Random Number</emphasis></term>
<listitem>
<para><command>rand([Ceil])</command></para>
<para>Generates a pseudo-random number. Returns a real number between 0 and 1, if ceil is zero (default), or an integer between 1 and (including) ceil.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Ceil: an integer (optional, default: -1)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Random Number Between Limits</emphasis></term>
<listitem>
<para><command>randbetween(Bottom, Top)</command></para>
<para>Returns an integer between (including) bottom and top.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Bottom: an integer</para></listitem>
<listitem><para>Top: an integer</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Requirement</title><para>
"Bottom"<="Top"
</para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
<sect2 id="qalculate-definitions-functions-2-Descriptive-Statistics">
<title>Descriptive Statistics</title>
<variablelist>
<varlistentry>
<term><emphasis>Decile</emphasis></term>
<listitem>
<para><command>decile(Data, Decile)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
<listitem><para>Decile: a number >= 0 and <= 100</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Interquartile Range</emphasis></term>
<listitem>
<para><command>iqr(Data)</command></para>
<para>Calculates the difference between the first and third quartile.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Max</emphasis></term>
<listitem>
<para><command>max(Vector)</command></para>
<para>Returns the highest value.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Median</emphasis></term>
<listitem>
<para><command>median(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Min</emphasis></term>
<listitem>
<para><command>min(Vector)</command></para>
<para>Returns the lowest value.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Mode</emphasis></term>
<listitem>
<para><command>mode(Vector)</command></para>
<para>Returns the most frequently occuring value.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Number of Samples</emphasis></term>
<listitem>
<para><command>number(Data)</command></para>
<para>Returns the number of samples.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Percentile</emphasis></term>
<listitem>
<para><command>percentile(Vector, Percentile (%))</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a vector</para></listitem>
<listitem><para>Percentile (%): a number > 0 and < 99</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Quartile</emphasis></term>
<listitem>
<para><command>quartile(Data, Quartile)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
<listitem><para>Quartile: an integer >= 1 and <= 3</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Range</emphasis></term>
<listitem>
<para><command>range(Data)</command></para>
<para>Calculates the difference between the min and max value.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Sum (total)</emphasis></term>
<listitem>
<para><command>total(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Distribution">
<title>Distribution</title>
<variablelist>
<varlistentry>
<term><emphasis>Logistic Distribution</emphasis></term>
<listitem>
<para><command>logistic(X, Scale)</command></para>
<para>Returns the probability density p(x) at x for a logistic distribution with scale parameter. (from Gnumeric)</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>X: a free value</para></listitem>
<listitem><para>Scale: a number >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Pareto Distribution</emphasis></term>
<listitem>
<para><command>pareto(X, Exponent, Scale)</command></para>
<para>Returns the probability density p(x) at x for a Pareto distribution with exponent and scale. (from Gnumeric)</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>X: a free value</para></listitem>
<listitem><para>Exponent: a number >= 0</para></listitem>
<listitem><para>Scale: a number >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Rayleigh Distribution</emphasis></term>
<listitem>
<para><command>rayleigh(X, Sigma)</command></para>
<para>Returns the probability density p(x) at x for a Rayleigh distribution with scale parameter sigma. (from Gnumeric)</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>X: a free value</para></listitem>
<listitem><para>Sigma: a number >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Rayleigh Tail Distribution</emphasis></term>
<listitem>
<para><command>rayleightail(X, Lower limit, Sigma)</command></para>
<para>Returns the probability density p(x) at x for a Rayleigh tail distribution with scale parameter sigma and a lower limit. (from Gnumeric)</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>X: a free value</para></listitem>
<listitem><para>Lower limit: a free value</para></listitem>
<listitem><para>Sigma: a number >= 0</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Means">
<title>Means</title>
<variablelist>
<varlistentry>
<term><emphasis>Geometric Mean</emphasis></term>
<listitem>
<para><command>geomean(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Harmonic Mean</emphasis></term>
<listitem>
<para><command>harmmean(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Mean</emphasis></term>
<listitem>
<para><command>mean(Data)</command></para>
<para><command>average</command></para><formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Quadratic Mean (RMS)</emphasis></term>
<listitem>
<para><command>rms(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Trimmed Mean</emphasis></term>
<listitem>
<para><command>trimmean(Data, Trimmed percentage (at each end))</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
<listitem><para>Trimmed percentage (at each end): a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Weighted Mean</emphasis></term>
<listitem>
<para><command>weighmean(Data, Weights)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
<listitem><para>Weights: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Winsorized Mean</emphasis></term>
<listitem>
<para><command>winsormean(Data, Winsorized percentage (at each end))</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
<listitem><para>Winsorized percentage (at each end): a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Moments">
<title>Moments</title>
<variablelist>
<varlistentry>
<term><emphasis>Covariance</emphasis></term>
<listitem>
<para><command>cov(Data 1, Data 2)</command></para>
<para><command>covar</command></para><formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data 1: a vector</para></listitem>
<listitem><para>Data 2: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Mean Deviation</emphasis></term>
<listitem>
<para><command>meandev(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Pooled Variance</emphasis></term>
<listitem>
<para><command>poolvar(Data 1, Data 2)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data 1: a vector</para></listitem>
<listitem><para>Data 2: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Standard Deviation (entire population)</emphasis></term>
<listitem>
<para><command>stdevp(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Standard Deviation (random sampling)</emphasis></term>
<listitem>
<para><command>stdev(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Standard Error</emphasis></term>
<listitem>
<para><command>stderr(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Variance (entire population)</emphasis></term>
<listitem>
<para><command>varp(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Variance (random sampling)</emphasis></term>
<listitem>
<para><command>var(Data)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Regression">
<title>Regression</title>
<variablelist>
<varlistentry>
<term><emphasis>Pearson's Correlation Coefficient</emphasis></term>
<listitem>
<para><command>pearson(Data 1, Data 2)</command></para>
<para><command>correl</command></para><formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data 1: a vector</para></listitem>
<listitem><para>Data 2: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Requirement</title><para>
dimension("Data 1")=dimension("Data 2")
</para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Spearman's Rho</emphasis></term>
<listitem>
<para><command>spearman(Data 1, Data 2)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data 1: a vector</para></listitem>
<listitem><para>Data 2: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
<formalpara>
<title>Requirement</title><para>
dimension("Data 1")=dimension("Data 2")
</para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Statistical Correlation</emphasis></term>
<listitem>
<para><command>cor(Data 1, Data 2)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data 1: a vector</para></listitem>
<listitem><para>Data 2: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2 id="qalculate-definitions-functions-2-Statistical-Tests">
<title>Statistical Tests</title>
<variablelist>
<varlistentry>
<term><emphasis>Paired T-Test</emphasis></term>
<listitem>
<para><command>pttest(Data 1, Data 2)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data 1: a vector</para></listitem>
<listitem><para>Data 2: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Unpaired T-Test</emphasis></term>
<listitem>
<para><command>ttest(Data 1, Data 2)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Data 1: a vector</para></listitem>
<listitem><para>Data 2: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Step-Functions">
<title>Step Functions</title>
<variablelist>
<varlistentry>
<term><emphasis>Heaviside Step Function</emphasis></term>
<listitem>
<para><command>heaviside(Value)</command></para>
<para>Discontinuous function also known as "unit step function". Returns 0 if x < 0, 1 if x > 0, and 1/2 if x = 0.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Logit Transformation</emphasis></term>
<listitem>
<para><command>logit(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Ramp Function</emphasis></term>
<listitem>
<para><command>ramp(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Rectangular Function</emphasis></term>
<listitem>
<para><command>rectangular(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Sigmoid Function</emphasis></term>
<listitem>
<para><command>sigmoid(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Triangular Function</emphasis></term>
<listitem>
<para><command>triangular(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a real number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Trigonometry">
<title>Trigonometry</title>
<variablelist>
<varlistentry>
<term><emphasis>Cosecant</emphasis></term>
<listitem>
<para><command>csc(Angle)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Angle: an angle or a number (using the default angle unit)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Cosine</emphasis></term>
<listitem>
<para><command>cos(Angle)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Angle: an angle or a number (using the default angle unit)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Cotangent</emphasis></term>
<listitem>
<para><command>cot(Angle)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Angle: an angle or a number (using the default angle unit)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Hyperbolic Cosecant</emphasis></term>
<listitem>
<para><command>csch(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Hyperbolic Cosine</emphasis></term>
<listitem>
<para><command>cosh(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Hyperbolic Cotangent</emphasis></term>
<listitem>
<para><command>coth(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Hyperbolic Secant</emphasis></term>
<listitem>
<para><command>sech(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Hyperbolic Sine</emphasis></term>
<listitem>
<para><command>sinh(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Hyperbolic Tangent</emphasis></term>
<listitem>
<para><command>tanh(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Cosecant</emphasis></term>
<listitem>
<para><command>acsc(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Cosine</emphasis></term>
<listitem>
<para><command>acos(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Cotangent</emphasis></term>
<listitem>
<para><command>acot(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Hyperbolic Cosecant</emphasis></term>
<listitem>
<para><command>acsch(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Hyperbolic Cosine</emphasis></term>
<listitem>
<para><command>acosh(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Hyperbolic Cotangent</emphasis></term>
<listitem>
<para><command>acoth(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Hyperbolic Secant</emphasis></term>
<listitem>
<para><command>asech(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Hyperbolic Sine</emphasis></term>
<listitem>
<para><command>asinh(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Hyperbolic Tangent</emphasis></term>
<listitem>
<para><command>atanh(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Secant</emphasis></term>
<listitem>
<para><command>asec(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Sine</emphasis></term>
<listitem>
<para><command>asin(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Inverse Tangent</emphasis></term>
<listitem>
<para><command>atan(argument 1)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>1: a number</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Radians to Default Angle Unit</emphasis></term>
<listitem>
<para><command>radtodef(Radians)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Radians: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Secant</emphasis></term>
<listitem>
<para><command>sec(Angle)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Angle: an angle or a number (using the default angle unit)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Sine</emphasis></term>
<listitem>
<para><command>sin(Angle)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Angle: an angle or a number (using the default angle unit)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Tangent</emphasis></term>
<listitem>
<para><command>tan(Angle)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Angle: an angle or a number (using the default angle unit)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="qalculate-definitions-functions-1-Utilities">
<title>Utilities</title>
<variablelist>
<varlistentry>
<term><emphasis>ASCII Char</emphasis></term>
<listitem>
<para><command>char(Value)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: an integer >= 32 and <= 127</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>ASCII Value</emphasis></term>
<listitem>
<para><command>code(Character)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Character: a text string that fulfills the condition: "len(\x) = 1"</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Concatenate Strings</emphasis></term>
<listitem>
<para><command>concatenate(Text string 1[, Text string 2], ...)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Text string 1: a text string</para></listitem>
<listitem><para>Text string 2: a text string (optional)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Custom Sum of Elements</emphasis></term>
<listitem>
<para><command>csum(First element, Last element, Initial value, Function, Value variable, Element variable, Vector[, Index variable][, Vector variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>First element: an integer</para></listitem>
<listitem><para>Last element: an integer</para></listitem>
<listitem><para>Initial value: a free value</para></listitem>
<listitem><para>Function: a free value</para></listitem>
<listitem><para>Value variable: an unknown variable/symbol</para></listitem>
<listitem><para>Element variable: an unknown variable/symbol</para></listitem>
<listitem><para>Vector: a vector</para></listitem>
<listitem><para>Index variable: an unknown variable/symbol (optional, default: "")</para></listitem>
<listitem><para>Vector variable: an unknown variable/symbol (optional, default: "")</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Display Error</emphasis></term>
<listitem>
<para><command>error(Message)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Message: a text string</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Display Message</emphasis></term>
<listitem>
<para><command>message(Message)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Message: a text string</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Display Warning</emphasis></term>
<listitem>
<para><command>warning(Message)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Message: a text string</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Function</emphasis></term>
<listitem>
<para><command>function(Expression, Arguments)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Expression: a text string</para></listitem>
<listitem><para>Arguments: a vector</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Length of string</emphasis></term>
<listitem>
<para><command>len(Text)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Text: a text string</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Process Matrix Elements</emphasis></term>
<listitem>
<para><command>processm(Function, Element variable, Matrix[, Row variable][, Column variable][, Matrix variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Function: a free value</para></listitem>
<listitem><para>Element variable: an unknown variable/symbol</para></listitem>
<listitem><para>Matrix: a matrix</para></listitem>
<listitem><para>Row variable: an unknown variable/symbol (optional, default: "")</para></listitem>
<listitem><para>Column variable: an unknown variable/symbol (optional, default: "")</para></listitem>
<listitem><para>Matrix variable: an unknown variable/symbol (optional, default: "")</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Process Vector Elements</emphasis></term>
<listitem>
<para><command>process(Function, Element variable, Vector[, Index variable][, Vector variable])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Function: a free value</para></listitem>
<listitem><para>Element variable: an unknown variable/symbol</para></listitem>
<listitem><para>Vector: a vector</para></listitem>
<listitem><para>Index variable: an unknown variable/symbol (optional, default: "")</para></listitem>
<listitem><para>Vector variable: an unknown variable/symbol (optional, default: "")</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>RPN Stack Register</emphasis></term>
<listitem>
<para><command>register(Index)</command></para>
<para>Returns the value of a RPN stack register.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Index: an integer >= 1</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>RPN Stack Vector</emphasis></term>
<listitem>
<para><command>stack()</command></para>
<para>Returns the RPN stack as a vector.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Replace</emphasis></term>
<listitem>
<para><command>replace(Expression, Original value, New value[, Precalculate expression])</command></para>
<para>Replaces a certain value in an expression with a new value. The expression is calculated before the replacement if the fourth argument is true.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Expression: a free value</para></listitem>
<listitem><para>Original value: a free value</para></listitem>
<listitem><para>New value: a free value</para></listitem>
<listitem><para>Precalculate expression: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Save as Variable</emphasis></term>
<listitem>
<para><command>save(Value, Name[, Category][, Title])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Value: a free value</para></listitem>
<listitem><para>Name: a text string</para></listitem>
<listitem><para>Category: a text string (optional, default: Temporary)</para></listitem>
<listitem><para>Title: a text string (optional)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Select Vector Elements</emphasis></term>
<listitem>
<para><command>select(Vector, Condition[, Element variable][, Select first match])</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Vector: a free value</para></listitem>
<listitem><para>Condition: a free value</para></listitem>
<listitem><para>Element variable: an unknown variable/symbol (optional, default: x)</para></listitem>
<listitem><para>Select first match: a boolean (0 or 1) (optional, default: 0)</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Strip Units</emphasis></term>
<listitem>
<para><command>nounit(Expression)</command></para>
<para><command>strip_units</command></para><para>Removes all units from an expression. The expression is calculated before the removal.</para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Expression: a free value</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>Title</emphasis></term>
<listitem>
<para><command>title(Name)</command></para>
<formalpara>
<title>Arguments</title><para><itemizedlist spacing="compact">
<listitem><para>Name: a valid function, unit or variable name</para></listitem>
</itemizedlist></para>
</formalpara>
</listitem>
</varlistentry>
</variablelist>
</sect1>
</appendix>
|