summaryrefslogtreecommitdiffstats
path: root/kspread/extensions/math.xml
blob: 0d826a0f96f9a86c3572cffaf38f65bc3d97233b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
<!DOCTYPE KSpreadFunctions>
<KSpreadFunctions>

  <Group>
    <GroupName>Math</GroupName>

    <Function>
      <Name>SUBTOTAL</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Function</Comment>
        <Type>Int</Type>
      </Parameter>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The SUBTOTAL() function returns a subtotal of a given list of arguments ignoring other subtotal results in there. Function can be one of the following numbers: 1 - Average, 2 - Count, 3 - CountA, 4 - Max, 5 - Min, 6 - Product, 7 - StDev, 8 - StDevP, 9 - Sum, 10 - Var, 11 - VarP.</Text>
	<Syntax>SUBTOTAL(function; value)</Syntax>
	<Example>If A1:A5 contains 7, 24, 23, 56 and 9:</Example>
	<Example>SUBTOTAL(1; A1:A5) returns 23.8</Example>
	<Example>SUBTOTAL(4; A1:A5) returns 56</Example>
	<Example>SUBTOTAL(9; A1:A5) returns 119</Example>
	<Example>SUBTOTAL(11; A1:A5) returns 307.76</Example>
	<Related>AVERAGE</Related>
	<Related>COUNT</Related>
	<Related>COUNTA</Related>
	<Related>MAX</Related>
	<Related>MIN</Related>
	<Related>PRODUCT</Related>
	<Related>STDEV</Related>
	<Related>STDEVP</Related>
	<Related>SUM</Related>
	<Related>VAR</Related>
	<Related>VARP</Related>
      </Help>
    </Function>

    <Function>
      <Name>LCM</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>First number</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Parameter>
        <Comment>Second number</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The LCM() function returns the least common multiple for two or more float values</Text>
	<Syntax>LCM(value; value)</Syntax>
	<Example>LCM(6;4) returns 12</Example>
	<Example>LCM(1.5;2.25) returns 4.5</Example>
	<Example>LCM(2;3;4) returns 12</Example>
	<Related>GCD</Related>
      </Help>
    </Function>

    <Function>
      <Name>GCD</Name>
      <Type>Int</Type>
      <Parameter>
        <Comment>First number</Comment>
        <Type range="true">Int</Type>
      </Parameter>
      <Parameter>
        <Comment>Second number</Comment>
        <Type range="true">Int</Type>
      </Parameter>
      <Parameter>
        <Comment>Third number</Comment>
        <Type range="true">Int</Type>
      </Parameter>
      <Help>
	<Text>The GCD() function returns the greatest common denominator for two or more integer values.</Text>
	<Syntax>GCD(value; value)</Syntax>
	<Example>GCD(6;4) returns 2</Example>
	<Example>GCD(10;20) returns 10</Example>
	<Example>GCD(20;15;10) returns 5</Example>
	<Related>LCM</Related>
      </Help>
    </Function>

    <Function>
      <Name>LCD</Name>
      <Type>Int</Type>
      <Parameter>
        <Comment>First number</Comment>
        <Type range="true">Int</Type>
      </Parameter>
      <Parameter>
        <Comment>Second number</Comment>
        <Type range="true">Int</Type>
      </Parameter>
      <Parameter>
        <Comment>Third number</Comment>
        <Type range="true">Int</Type>
      </Parameter>
      <Help>
	<Text>The LCD() function returns the largest common denominator for two or more integer values.</Text>
        <Text>This function is obsolete and will be removed in a later version of KSpread. It is provided only for compatibility. Please use the GCD function instead.</Text>
	<Syntax>LCD(value; value)</Syntax>
      </Help>
    </Function>

    <Function>
      <Name>EPS</Name>
      <Type>Float</Type>
      <Help>
	<Text>EPS() returns the machine epsilon; this is the difference between 1 and the next largest floating-point number. Because computers use a finite number of digits, roundoff error is inherent (but usually insignificant) in all calculations.</Text>
	<Syntax>EPS()</Syntax>
	<Example>On most systems, this returns 2^-52=2.2204460492503131e-16</Example>
	<Example>0.5*EPS() returns the "unit round"; this value is interesting because it is the largest number x where (1+x)-1=0 (due to roundoff errors).</Example>
	<Example>EPS() is so small that KSpread displays 1+eps() as 1</Example>
	<Example>Pick a number x between 0 and EPS(). Observe that 1+x rounds x to either 0 or EPS() by using the equation (1+x)-1</Example>
      </Help>
    </Function>

    <Function>
      <Name>POWER</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The POWER(x;y) function returns the value of x raised to the power of y.</Text>
	<Syntax>POWER(value;value)</Syntax>
	<Example>POWER(1.2;3.4) equals 1.8572</Example>
  <Example>POWER(2;3) equals 8</Example>
  <Related>POW</Related>
      </Help>
    </Function>

    <Function>
      <Name>POW</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The POW(x;y) function returns the value of x raised to the power of y. It's the same as POWER.</Text>
	<Syntax>POW(value;value)</Syntax>
	<Example>POW(1.2;3.4) equals 1.8572</Example>
  <Example>POW(2;3) equals 8</Example>
  <Related>POWER</Related>
      </Help>
    </Function>

    <Function>
      <Name>EVEN</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The EVEN() function returns the number rounded up to the nearest even integer.</Text>
	<Syntax>EVEN(value)</Syntax>
	<Example>EVEN(1.2) returns 2</Example>
	<Example>EVEN(2) returns 2</Example>
	<Related>ODD</Related>
      </Help>
    </Function>

    <Function>
      <Name>TRUNC</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Precision</Comment>
	<Type>Integer</Type>
      </Parameter>
      <Help>
	<Text>The TRUNC() function truncates a numeric value to a certain precision. If the precision is omitted 0 is assumed.</Text>
	<Syntax>TRUNC(value; precision)</Syntax>
	<Example>TRUNC(1.2) returns 1</Example>
	<Example>TRUNC(213.232; 2) returns 213.23</Example>
	<Related>ROUND</Related>
	<Related>ROUNDDOWN</Related>
	<Related>ROUNDUP</Related>
      </Help>
    </Function>

    <Function>
      <Name>ODD</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The ODD() function returns the number rounded up to the nearest odd integer.</Text>
	<Syntax>ODD(value)</Syntax>
	<Example>ODD(1.2) returns 3</Example>
	<Example>ODD(2) returns 3</Example>
	<Related>EVEN</Related>
      </Help>
    </Function>


    <Function>
      <Name>MOD</Name>
      <Type>Int</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Int</Type>
      </Parameter>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Int</Type>
      </Parameter>
      <Help>
	<Text>The MOD() function returns the remainder after division. If the second parameter is null the function returns #DIV/0.</Text>
	<Syntax>MOD(value;value)</Syntax>
	<Example>MOD(12;5) returns 2</Example>
	<Example>MOD(5;5) returns 0</Example>
	<Related>DIV</Related>
      </Help>
    </Function>

    <Function>
      <Name>SIGN</Name>
      <Type>Int</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>This function returns -1 if the number is negative, 0 if the number is null and 1 if the number is positive.</Text>
	<Syntax>SIGN(value)</Syntax>
	<Example>SIGN(5) equals 1</Example>
	<Example>SIGN(0) equals 0</Example>
	<Example>SIGN(-5) equals -1</Example>
      </Help>
    </Function>

    <Function>
      <Name>INV</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>This function multiplies each value by -1.</Text>
	<Syntax>INV(value)</Syntax>
	<Example>INV(-5) equals 5</Example>
	<Example>INV(5) equals -5</Example>
	<Example>INV(0) equals 0</Example>
      </Help>
    </Function>

    <Function>
      <Name>COUNT</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>This function returns the count of integer or floating arguments passed. You can count using a range: COUNT(A1:B5) or using a list of values like COUNT(12;5;12.5).</Text>
	<Syntax>COUNT(value;value;value...)</Syntax>
	<Example>COUNT(-5;"KSpread";2) returns 2</Example>
	<Example>COUNT(5) returns 1</Example>
	<Related>COUNTA</Related>
	<Related>COUNTIF</Related>
	<Related>SUM</Related>
      </Help>
    </Function>

    <Function>
      <Name>COUNTA</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>This function returns the count of all non empty arguments passed. You can count using a range: COUNTA(A1:B5) or using a list of values like COUNTA(12;5;12.5).</Text>
	<Syntax>COUNTA(value;value;value...)</Syntax>
	<Example>COUNTA(-5;"KSpread";2) returns 3</Example>
	<Example>COUNTA(5) returns 1</Example>
	<Related>COUNT</Related>
	<Related>COUNTIF</Related>
      </Help>
    </Function>

    <Function>
      <Name>COUNTBLANK</Name>
      <Type>Float</Type>
      <Parameter optional="true">
	<Comment>Cell range</Comment>
	<Type range="true">Range</Type>
      </Parameter>
      <Help>
	<Text>This function returns the count of all empty cells within the range.</Text>
	<Syntax>COUNTBLANK(range)</Syntax>
	<Example>COUNTBLANK(A1:B5)</Example>
	<Related>COUNT</Related>
	<Related>COUNTA</Related>
	<Related>COUNTIF</Related>
      </Help>
    </Function>

    <Function>
      <Name>COUNTIF</Name>
      <Type>Int</Type>
      <Parameter>
	<Comment>Range</Comment>
	<Type range="true">Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Criteria</Comment>
	<Type>String</Type>
      </Parameter>
      <Help>
	<Text>The COUNTIF() function returns the number of cells in the given range that meet the given criteria.</Text>
	<Syntax>COUNTIF(range;criteria)</Syntax>
	<Example>COUNTIF(A2:A3;"14") returns 1 if A1 is -4 and A2 is 14</Example>
	<Related>COUNT</Related>
        <Related>SUMIF</Related>
      </Help>
    </Function>

    <Function>
      <Name>FACT</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The FACT() function calculates the factorial of the parameter. The mathematical expression is (value)!.</Text>
	<Syntax>FACT(number)</Syntax>
	<Example>FACT(10) returns 3628800</Example>
	<Example>FACT(0) returns 1</Example>
      </Help>
    </Function>

    <Function>
      <Name>FACTDOUBLE</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The FACTDOUBLE() function calculates the double factorial of a number, i.e. x!!.</Text>
	<Syntax>FACTDOUBLE(number)</Syntax>
	<Example>FACTDOUBLE(6) returns 48</Example>
	<Example>FACTDOUBLE(7) returns 105</Example>
      </Help>
    </Function>

    <Function>
      <Name>SUM</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The SUM() function calculates the sum of all the values given as parameters. You can calculate the sum of a range SUM(A1:B5) or a list of values like SUM(12;5;12.5).</Text>
	<Syntax>SUM(value;value;...)</Syntax>
	<Example>SUM(12;5;7) equals 24</Example>
	<Example>SUM(12.5;2) equals 14.5</Example>
	<Related>SUMA</Related>
	<Related>SUMSQ</Related>
        <Related>SUMIF</Related>
      </Help>
    </Function>

    <Function>
      <Name>SUMA</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The SUMA() function calculates the sum of all the values given as parameters. You can calculate the sum of a range SUMA(A1:B5) or a list of values like SUMA(12;5;12.5). If a parameter contains text or the boolean value FALSE it is counted as 0, if a parameter evaluates to TRUE it is counted as 1.</Text>
	<Syntax>SUM(value;value;...)</Syntax>
	<Example>SUMA(12;5; 7) equals 24</Example>
	<Example>SUMA(12.5; 2; TRUE) equals 15.5</Example>
	<Related>SUM</Related>
	<Related>SUMSQ</Related>
      </Help>
    </Function>

    <Function>
      <Name>SUMIF</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Check range</Comment>
        <Type range="true">Float</Type>
      </Parameter>
      <Parameter>
        <Comment>Criteria</Comment>
        <Type>String</Type>
      </Parameter>
      <Parameter optional="true">
        <Comment>Sum range</Comment>
        <Type range="true">Float</Type>
      </Parameter>
      <Help>
	<Text>The SUMIF() function calculates the sum of all values given as parameters which match the criteria. The sum range is optional. If not supplied, the values in the check range are summed. The length of the check range should be equal or less than the length of the sum range.</Text>
	<Syntax>SUMIF(checkrange;criteria;sumrange)</Syntax>
        <Example>SUMIF(A1:A4;">1") sums all values in range A1:A4 which match >1</Example>
        <Example>SUMIF(A1:A4;"=0";B1:B4) sums all values in range B1:B4 if the corresponding value in A1:A4 matches =0</Example>
	<Related>SUM</Related>
	<Related>COUNTIF</Related>
      </Help>
    </Function>

    <Function>
      <Name>PRODUCT</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The PRODUCT() function calculates the product of all the values given as parameters. You can calculate the product of a range: PRODUCT(A1:B5) or a list of values like product(12;5;12.5). If no numeric values are found 0 is returned.</Text>
	<Syntax>PRODUCT(value;value;...)</Syntax>
	<Example>PRODUCT(3;5;7) equals 105</Example>
	<Example>PRODUCT(12.5;2) equals 25</Example>
	<Related>MULTIPLY</Related>
	<Related>KPRODUCT</Related>
      </Help>
    </Function>

    <Function>
      <Name>KPRODUCT</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The KPRODUCT() function calculates the product of all the values given as parameters. You can calculate the product of a range: KPRODUCT(A1:B5) or a list of values like KPRODUCT(12;5;12.5). If no numeric values are found 1 is returned.</Text>
	<Syntax>KPRODUCT(value;value;...)</Syntax>
	<Example>KPRODUCT(3;5;7) equals 105</Example>
  <Example>KPRODUCT(12.5;2) equals 25</Example>
  <Related>G_PRODUCT</Related>
	<Related>MULTIPLY</Related>
	<Related>PRODUCT</Related>
      </Help>
    </Function>

    <Function>
      <Name>G_PRODUCT</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The G_PRODUCT() function is the same as KPRODUCT. It is provided for Gnumeric compatibility.</Text>
	<Syntax>G_PRODUCT(value;value;...)</Syntax>
	<Related>KPRODUCT</Related>
      </Help>
    </Function>

    <Function>
      <Name>DIV</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The DIV() function divides the first value by the other values in turn.</Text>
	<Syntax>DIV(value;value;...)</Syntax>
	<Example>DIV(20;2;2) returns 5</Example>
	<Example>DIV(25;2.5) returns 10</Example>
	<Related>MULTIPLY</Related>
	<Related>MOD</Related>
      </Help>
    </Function>

    <Function>
      <Name>SUMSQ</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The SUMSQ() function calculates the sum of all the squares of values given as parameters. You can calculate the sum of a range SUMSQ(A1:B5) or a list of values like SUMSQ(12;5;12.5).</Text>
	<Syntax>SUMSQ(value;value;...)</Syntax>
	<Example>SUMSQ(12;5;7) equals 218</Example>
	<Example>SUMSQ(12.5;2) equals 173</Example>
	<Related>SUM</Related>
      </Help>
    </Function>


    <Function>
      <Name>MAX</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The MAX() function returns the largest value given in the parameters. String and logical values are ignored.</Text>
	<Syntax>MAX(value;value;...)</Syntax>
	<Example>MAX(12;5; 7) returns 12</Example>
	<Example>MAX(12.5; 2) returns 12.5</Example>
	<Example>MAX(0.5; 0.4; TRUE; 0.2) returns 0.5</Example>
	<Related>COUNT</Related>
	<Related>COUNTA</Related>
	<Related>MAXA</Related>
	<Related>MIN</Related>
	<Related>MINA</Related>
      </Help>
    </Function>

    <Function>
      <Name>MAXA</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The MAXA() function returns the largest value given in the parameters. TRUE evaluates to 1, FALSE evaluates to 0. String values are ignored.</Text>
	<Syntax>MAXA(value;value;...)</Syntax>
	<Example>MAXA(12;5; 7) returns 12</Example>
	<Example>MAXA(12.5; 2) returns 12.5</Example>
	<Example>MAXA(0.5; 0.4; TRUE; 0.2) returns 1</Example>
	<Related>COUNT</Related>
	<Related>COUNTA</Related>
	<Related>MAX</Related>
	<Related>MIN</Related>
	<Related>MINA</Related>
      </Help>
    </Function>

    <Function>
      <Name>MIN</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The MIN() function returns the smallest value given in the parameters. String and logical values are ignored.</Text>
	<Syntax>MIN(value;value;...)</Syntax>
	<Example>MIN(12;5; 7) returns 5</Example>
	<Example>MIN(12.5; 2) returns 2</Example>
  <Example>MIN(0.4; 2; FALSE; 0.7) returns 0.4</Example>
	<Related>COUNT</Related>
	<Related>COUNTA</Related>
	<Related>MAX</Related>
	<Related>MAXA</Related>
	<Related>MINA</Related>
      </Help>
    </Function>

    <Function>
      <Name>MINA</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The MINA() function returns the smallest value given in the parameters. TRUE evaluates to 1, FALSE to 0. String values are ignored.</Text>
	<Syntax>MINA(value;value;...)</Syntax>
	<Example>MINA(12;5; 7) returns 5</Example>
	<Example>MINA(12.5; 2) returns 2</Example>
	<Example>MINA(0.4; 2; FALSE; 0.7) returns 0.</Example>
	<Related>COUNT</Related>
	<Related>COUNTA</Related>
	<Related>MAX</Related>
	<Related>MAXA</Related>
	<Related>MIN</Related>
      </Help>
    </Function>

    <Function>
      <Name>MULTIPLY</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The MULTIPLY() function multiplies all the values given in the parameters. You can multiply values given by a range MULTIPLY(A1:B5) or a list of values like MULTIPLY(12;5;12.5). It's equivalent to PRODUCT.</Text>
	<Syntax>MULTIPLY(value;value;...)</Syntax>
	<Example>MULTIPLY(12;5;7) equals 420</Example>
	<Example>MULTIPLY(12.5;2) equals 25</Example>
	<Related>DIV</Related>
	<Related>PRODUCT</Related>
	<Related>KPRODUCT</Related>
      </Help>
    </Function>

    <Function>
      <Name>MULTINOMIAL</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Values</Comment>
        <Type range="true">FLOAT</Type>
      </Parameter>
      <Help>
	<Text>The MULTINOMIAL() function returns the multinomial of each number in the parameters. It uses this formula for MULTINOMIAL(a,b,c):</Text>
        <Text>(a+b+c)! / a!b!c!</Text>
	<Syntax>MULTINOMIAL(value;value;...)</Syntax>
	<Example>MULTINOMIAL(3;4;5) equals 27720</Example>
      </Help>
    </Function>

    <Function>
      <Name>SQRT</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The SQRT() function returns the non-negative square root of x. If x is negative, "NaN" is returned.</Text>
	<Syntax>SQRT(x)</Syntax>
	<Example>SQRT(9) equals 3</Example>
	<Example>SQRT(-9) equals "NaN"</Example>
      </Help>
    </Function>

    <Function>
      <Name>SQRTPI</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The SQRTPI() function returns the non-negative square root of x * PI.</Text>
	<Syntax>SQRTPI(x)</Syntax>
	<Example>SQRTPI(2) equals 2.506628</Example>
      </Help>
    </Function>

    <Function>
      <Name>LN</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The LN() function returns the natural logarithm of x.</Text>
	<Syntax>LN(x)</Syntax>
	<Example>LN(0.8) equals -0.22314355</Example>
	<Example>LN(0) equals -inf</Example>
	<Related>LOG</Related>
  <Related>LOG10</Related>
  <Related>LOG2</Related>
      </Help>
    </Function>

    <Function>
      <Name>LOGN</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Base</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The LOGn() function returns the base n logarithm of x.</Text>
	<Syntax>LOGn(value;base)</Syntax>
	<Example>LOGn(12;10) equals 1.07918125</Example>
	<Example>LOGn(12;2) equals 3.5849625</Example>
  <Related>LOG</Related>
  <Related>LN</Related>
  <Related>LOG10</Related>
  <Related>LOG2</Related>
      </Help>
    </Function>

    <Function>
      <Name>ROOTN</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Value</Comment>
	<Type>Int</Type>
      </Parameter>
      <Help>
	<Text>The ROOTN() function returns the non-negative nth root of x.</Text>
	<Syntax>ROOTN(x;n)</Syntax>
	<Example>ROOTN(9;2) equals 3</Example>
	<Related>SQRT</Related>
      </Help>
    </Function>

    <Function>
      <Name>CUR</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The CUR() function returns the non-negative cube root of x.</Text>
	<Syntax>CUR(x)</Syntax>
	<Example>CUR(27) equals 3</Example>
	<Related>SQRT</Related>
      </Help>
    </Function>

    <Function>
      <Name>LOG</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The LOG() function returns the base-10 logarithm of x.</Text>
	<Syntax>LOG(x)</Syntax>
	<Example>LOG(0.8) equals -0.09691001</Example>
	<Example>LOG(0) equals -inf.</Example>
	<Related>LN</Related>
  <Related>LOGN</Related>
  <Related>LOG10</Related>
  <Related>LOG2</Related>
      </Help>
    </Function>

    <Function>
      <Name>LOG10</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The LOG10() function returns the base-10 logarithm of x.</Text>
	<Syntax>LOG10(x)</Syntax>
	<Example>LOG10(0.8) equals -0.09691001</Example>
	<Example>LOG10(0) equals -inf.</Example>
	<Related>LN</Related>
  <Related>LOGN</Related>
  <Related>LOG</Related>
  <Related>LOG2</Related>
      </Help>
    </Function>

    <Function>
      <Name>LOG2</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The LOG2() function returns the base-2 logarithm of x.</Text>
	<Syntax>LOG2(x)</Syntax>
	<Example>LOG2(0.8) equals -0.32192809</Example>
	<Example>LOG2(0) equals -inf.</Example>
	<Related>LN</Related>
  <Related>LOGN</Related>
  <Related>LOG</Related>
  <Related>LOG10</Related>
      </Help>
    </Function>

    <Function>
      <Name>EXP</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The EXP() function returns the value of e (the base of natural logarithms) raised to the power of x.</Text>
	<Syntax>EXP(x)</Syntax>
	<Example>EXP(9) equals 8 103.08392758</Example>
	<Example>EXP(-9) equals 0.00012341</Example>
	<Related>LN</Related>
      </Help>
    </Function>

    <Function>
      <Name>CEIL</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The CEIL() function rounds x up to the nearest integer, returning that value as a double.</Text>
	<Syntax>CEIL(x)</Syntax>
	<Example>CEIL(12.5) equals 13</Example>
	<Example>CEIL(-12.5) equals -12</Example>
	<Related>CEILING</Related>
	<Related>FLOOR</Related>
      </Help>
    </Function>

    <Function>
      <Name>CEILING</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Significance (optional)</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The CEILING() function rounds x up to the nearest multiple of significance.</Text>
	<Syntax>CEILING(x)</Syntax>
	<Example>CEILING(12.5) equals 13</Example>
	<Example>CEILING(6.43; 4) equals 8</Example>
	<Related>CEIL</Related>
	<Related>FLOOR</Related>
      </Help>
    </Function>

    <Function>
      <Name>FLOOR</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The FLOOR() function rounds x down to the nearest integer, returning that value as a double.</Text>
	<Syntax>FLOOR(x)</Syntax>
	<Example>FLOOR(12.5) equals 12</Example>
	<Example>FLOOR(-12.5) equals -13</Example>
	<Related>CEIL</Related>
      </Help>
    </Function>

    <Function>
      <Name>ABS</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The ABS() function returns the absolute value of the floating-point number x.</Text>
	<Syntax>ABS(x)</Syntax>
	<Example>ABS(12.5) equals 12.5</Example>
	<Example>ABS(-12.5) equals 12.5</Example>
      </Help>
    </Function>

    <Function>
      <Name>INT</Name>
      <Type>Int</Type>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The INT() function returns the integer part of the value.</Text>
	<Syntax>INT(x)</Syntax>
	<Example>INT(12.55) equals 12</Example>
	<Example>INT(15) equals 15</Example>
	<Related>FLOOR</Related>
	<Related>QUOTIENT</Related>
      </Help>
    </Function>

    <Function>
      <Name>RAND</Name>
      <Type>Float</Type>
      <Help>
	<Text>The RAND() function returns a pseudo-random number between 0 and 1.</Text>
	<Syntax>RAND()</Syntax>
	<Example>RAND() equals for example 0.78309922...</Example>
        <Related>RANDBETWEEN</Related>
        <Related>RANDEXP</Related>
      </Help>
    </Function>

    <Function>
      <Name>RANDEXP</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value (greater 0)</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The RANDEXP() function returns an exponentially-distributed pseudo-random number.</Text>
	<Syntax>RANDEXP(x)</Syntax>
	<Example>RANDEXP(0.88)</Example>
        <Related>RAND</Related>
      </Help>
    </Function>

    <Function>
      <Name>RANDPOISSON</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value (greater 0)</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The RANDPOISSON() function returns a poisson-distributed pseudo-random number.</Text>
	<Syntax>RANDPOISSON(x)</Syntax>
	<Example>RANDPOISSON(4)</Example>
        <Related>RAND</Related>
      </Help>
    </Function>

    <Function>
      <Name>RANDBINOM</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value (between 0 and 1)</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Trials (greater 0)</Comment>
	<Type>Int</Type>
      </Parameter>
      <Help>
	<Text>The RANDBINOM() function returns a binomially-distributed pseudo-random number.</Text>
	<Syntax>RANDBINOM(x)</Syntax>
	<Example>RANDBINOM(4)</Example>
        <Related>RAND</Related>
        <Related>RANDNEGBINOM</Related>
      </Help>
    </Function>

    <Function>
      <Name>RANDNEGBINOM</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value (between 0 and 1)</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Failures (greater 0)</Comment>
	<Type>Int</Type>
      </Parameter>
      <Help>
	<Text>The RANDNEGBINOM() function returns a negative binomially-distributed pseudo-random number.</Text>
	<Syntax>RANDNEGBINOM(x)</Syntax>
	<Example>RANDNEGBINOM(4)</Example>
        <Related>RAND</Related>
        <Related>RANDBINOM</Related>
      </Help>
    </Function>

    <Function>
      <Name>RANDBERNOULLI</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>A floating point value (between 0 and 1)</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>A floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The RANDBERNOULLI() function returns a Bernoulli-distributed pseudo-random number.</Text>
	<Syntax>RANDBERNOULLI(x)</Syntax>
	<Example>RANDBERNOULLI(0.45)</Example>
        <Related>RAND</Related>
      </Help>
    </Function>

    <Function>
      <Name>RANDNORM</Name>
      <Type>Float</Type>
      <Parameter>
       <Comment>Mean value of the normal distribution</Comment>
       <Type>Float</Type>
      </Parameter>
      <Parameter>
       <Comment>Dispersion of the normal distribution</Comment>
       <Type>Float</Type>
      </Parameter>
      <Help>
       <Text>The RANDNORM() function returns a Normal(Gaussian)-distributed pseudo-random number.</Text>
       <Syntax>RANDNORM(mu; sigma)</Syntax>
       <Example>RANDNORM(0; 1)</Example>
        <Related>RAND</Related>
      </Help>
    </Function>

    <Function>
      <Name>RANDBETWEEN</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Bottom value</Comment>
	<Type>Int</Type>
      </Parameter>
      <Parameter>
	<Comment>Top value</Comment>
	<Type>Int</Type>
      </Parameter>
      <Help>
	<Text>The RANDBETWEEN() function returns a pseudo-random number between bottom and top value. If bottom > top this function returns Err.</Text>
	<Syntax>RANDBETWEEN(bottom;top)</Syntax>
	<Example>RANDBETWEEN(12;78) equals for example 61.0811...</Example>
        <Related>RAND</Related>
      </Help>
    </Function>
    <Function>
      <Name>MROUND</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Multiple</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>The MROUND() function returns the value rounded to the specified multiple. The value and the multiple must have the same sign</Text>
	<Syntax>MROUND(value; multiple)</Syntax>
	<Example>MROUND(1.252; 0.5) equals 1.5</Example>
	<Example>MROUND(-1.252; -0.5) equals -1.5</Example>
	<Related>ROUND</Related>
      </Help>
    </Function>

    <Function>
      <Name>ROUND</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Digits</Comment>
	<Type>Int</Type>
      </Parameter>
      <Help>
	<Text>The ROUND(value;[digits]) function returns value rounded. Digits is the number of digits to which you want to round that number. If digits is zero or omitted, value is rounded up to the nearest integer. If digits is smaller than zero, the corresponding integer part of the number is rounded.</Text>
	<Syntax>ROUND(value;[digits])</Syntax>
	<Example>ROUND(1.252;2) equals 1.25</Example>
	<Example>ROUND(-1.252;2) equals -1.25</Example>
	<Example>ROUND(1.258;2) equals 1.26</Example>
	<Example>ROUND(-12.25;-1) equals -10</Example>
	<Example>ROUND(-1.252;0) equals -1</Example>
	<Related>MROUND</Related>
	<Related>ROUNDDOWN</Related>
	<Related>ROUNDUP</Related>
      </Help>
    </Function>

    <Function>
      <Name>ROUNDUP</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Digits</Comment>
	<Type>Int</Type>
      </Parameter>
      <Help>
	<Text>The ROUNDUP(value;[digits]) function returns value rounded up. Digits is the number of digits to which you want to round that number. If digits is zero or omitted, value is rounded up to the nearest integer.</Text>
	<Syntax>ROUNDUP(value;[digits])</Syntax>
	<Example>ROUNDUP(1.252;2) equals 1.26</Example>
	<Example>ROUNDUP(-1.252;2) equals -1.25</Example>
	<Example>ROUNDUP(-1.252) equals -1</Example>
	<Related>ROUND</Related>
	<Related>ROUNDDOWN</Related>
      </Help>
    </Function>

    <Function>
      <Name>ROUNDDOWN</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Floating point value</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Digits</Comment>
	<Type>Int</Type>
      </Parameter>
      <Help>
	<Text>The ROUNDDOWN(value;[digits]) function returns value rounded down. Digits is the number of digits to which you want to round that number. If digits is zero or omitted, value is rounded down to the nearest integer.</Text>
	<Syntax>ROUNDDOWN(value;[digits])</Syntax>
	<Example>ROUNDDOWN(1.252;2) equals 1.25</Example>
	<Example>ROUNDDOWN(-1.252;2) equals -1.26</Example>
	<Example>ROUNDDOWN(-1.252) equals -2</Example>
	<Related>ROUND</Related>
	<Related>ROUNDUP</Related>
      </Help>
    </Function>

    <Function>
      <Name>FIB</Name>
      <Type>Float</Type>
      <Parameter>
	<Comment>Nth term</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>Function FIB calculates the Nth term of a Fibonacci sequence (1, 1, 2, 3, 5, 8, 13, 21...), in which each number, after the first two, is the sum of the two numbers immediately preceding it. FIB(0) is defined to be 0.</Text>
	<Syntax>FIB(n)</Syntax>
	<Example>FIB(9) returns 34</Example>
	<Example>FIB(26) returns 121393</Example>
      </Help>
    </Function>

    <Function>
      <Name>QUOTIENT</Name>
      <Type>Int</Type>
      <Parameter>
	<Comment>Numerator</Comment>
	<Type>Float</Type>
      </Parameter>
      <Parameter>
	<Comment>Denumerator</Comment>
	<Type>Float</Type>
      </Parameter>
      <Help>
	<Text>Function QUOTIENT returns the integer portion of numerator/denumerator.</Text>
	<Syntax>QUOTIENT(numerator;denumerator)</Syntax>
	<Example>QUOTIENT(21;4) returns 5</Example>
	<Related>INT</Related>
      </Help>
    </Function>

    <Function>
      <Name>MDETERM</Name>
      <Type>Float</Type>
      <Parameter>
        <Comment>Range</Comment>
        <Type range="true">Float</Type>
      </Parameter>
      <Help>
        <Text>Function MDETERM returns the determinant of a given matrix. The matrix must be of type n x n.</Text>
        <Syntax>MDETERM(matrix)</Syntax>
        <Example>MDETERM(A1:C3)</Example>
        <Related>MMULT</Related>
      </Help>
    </Function>

    <Function>
      <Name>MMULT</Name>
      <Type range="true">Float</Type>
      <Parameter>
        <Comment>First matrix</Comment>
        <Type range="true">Float</Type>
      </Parameter>
      <Parameter>
        <Comment>Second matrix</Comment>
        <Type range="true">Float</Type>
      </Parameter>
      <Help>
        <Text>Function MMULT multiplies two matrices. Number of columns of the first matrix nust be the same as row count of the second one. The result is a matrix.</Text>
        <Syntax>MMULT(matrix1;matrix2)</Syntax>
        <Example>MMULT(A1:C3)</Example>
        <Related>MDETERM</Related>
      </Help>
    </Function>

  </Group>

</KSpreadFunctions>