File: functions

package info (click to toggle)
abacus 0.9.13-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,308 kB
  • ctags: 5,120
  • sloc: ansic: 27,540; cpp: 11,426; tcl: 7,564; makefile: 386; yacc: 327; lex: 265; sh: 221
file content (741 lines) | stat: -rw-r--r-- 18,949 bytes parent folder | download | duplicates (2)
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


Abacus Functions(1)					   Abacus Functions(1)


Abacus has available the following functions that you can use as complex formulas:


		Math And Trignometric Functions 
		-------------------------------

-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - ABS
	SINTAX:     
		@ABS(number)
		@ABS(Cell)

	DESCRIPTION:

		This function returns the absolute value of a given Cell/number.
                An absolute value of a given number is it's number without it's
		signal.

	EXAMPLES:
		The result of @ABS(-5) equals to 5.
		The result of @ABS(A1) if Cell A1 contains -5 will be equal to 5.

	
-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - ACOS
	SINTAX:     
		@ACOS(number)
		@ACOS(Cell)

	DESCRIPTION:
                Returns the value of the corresponding inverse trignometric
                function cosine of the given argument.
                The arc-cosine is the angle which cosin is the argument.
                The argument must be a numeric expression in the range of
                -1<=argument<=1.
                The returned value is an angle in radians in the range of
                0<=returned value <= PI.
                If conversion should be needed from radians to degrees use
                the following formula @ACOS(argument)*180/@PI().

	EXAMPLES:
                The result of @ACOS(-0.5) is equal to 2.0943951 ( 2 PI/3 radians)
                The result of @ACOS(-0.5)*180/@PI() is equal to 120 (degrees)


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - ASIN

	SINTAX:     
		@ASIN(number)
		@ASIN(Cell)

	DESCRIPTION:
                Returns the value of the corresponding inverse trignometric
                function sine of the given argument.
                The arc-sine is the angle which sine is the argument.
                The argument must be a numeric expression in the range of
                -1<=argument<=1.
                The returned value is an angle in radians in the range of
                -PI/2 <=returned value <= PI/2.
                If conversion should be needed from radians to degrees use
                the following formula @ASIN(argument)*180/@PI().

	EXAMPLES:
                The result of @ASIN(-0.5) is equal to -0.5235988 ( -PI/6 radians)
                The result of @ASIN(-0.5)*180/@PI() is equal to -30 (degrees)


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - ATAN
	SINTAX:     
		@ATAN(number)
		@ATAN(Cell)

	DESCRIPTION:
                Returns the value of the corresponding inverse trignometric
                function tangent of the given argument.
                The arc-tangent is the angle which tanget is the argument.
                The argument can be any angle you wish. 
                The returned value is an angle in radians in the range of
                -PI/2 <=returned value <= PI/2.
                If conversion should be needed from radians to degrees use
                the following formula @ATAN(argument)*180/@PI().

	EXAMPLES:
                The result of @ATAN(1) is equal to 0.785398 ( PI/4 radians)
                The result of @ATAN(1)*180/@PI() is equal to 45 (degrees)


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - ATAN2
	SINTAX:     
                @ATAN(argument_x , argument_y)
                argument_x and argument_y can be each one either a number
                or a Cell.
                argument_x is the x coordinate of the desired point.
                argument_y is the y coordinate of the desired point.

	DESCRIPTION:
                Returns the angle between the XX radix and the line that
                contains the Origin (0,0) and the point which is located
                at the coordinate (argument_x,argument_y).
                The returned value is an angle in radians in the range of
                -PI < returned value <= PI.
                If argument_x and argument_y are 0, ATAN2 will result
                in "#DIV0!".
                If conversion should be needed from radians to degrees use
                the following formula ATAN2(argument_x:argument_y)*180/PI().

	EXAMPLES:
                The result of @ATAN2(1 , 1) is equal to 0.785398 (PI/4 radians).
                The result of @ATAN2(-1,-1) is equal to -2.35619
                (-3 PI/4 radianes).
                The result of @ATAN2(-1,-1)*180/@PI() is equal to -135(degrees).


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - COS
	SINTAX:     
		@COS(number)
		@COS(Cell)

	DESCRIPTION:
                Returns the cosine of a given angle.
                The argument is any radian number.
                If the angle is in degrees you should use the following
                convertion formula: @COS(argument*@PI()/180).

        EXAMPLES:
                The result of @COS(1.047) is equal to 0.500171.
                The result of @COS(60*@PI()/180) is equal to 0.5.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - EXP
	SINTAX:     
		@EXP(number)
		@EXP(Cell)

	DESCRIPTION:
                Returns the value of the exponential function for the argument.
                e=2,71828182845904
                EXP(x)= e^x
                EXP is the inverse of LN.

	EXAMPLES:
                The result of @EXP(1) is equal to 2,718282.
                The result of @EXP(2) is equal to e^2 = 7,389056.
                The result of @EXP(@LN(3)) is equal to 3.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - INTF
	SINTAX:     
		@INTF(argument)
		argument can either be a cell or a number.
		

	DESCRIPTION:
		Converts a float to an integer.

	EXAMPLES:
	       The result of @INTF(1.45555) is equal to 1.
	       The result of @INTF(1) is equal to 1.
		

-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - LN
	SINTAX:     
		@LN(number)
		@LN(Cell)

	DESCRIPTION:
                Returns the value of the corresponding Natural logarithm
                function for the argument.
                The Natural algorithm are based in e (2,71828182845904).
                The argument must be > 0.
                LN is the inverse of EXP.

	EXAMPLES:
                @LN(86) is equal to 4,454347.
                @LN(2,7182818) is equal to 1.
                @LN(@EXP(3))is equal to 3.
                @EXP(@LN(4)) is equal to 4.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - LOG
	SINTAX:     
                @LOG(number)
                number can be either Cell or number.

	DESCRIPTION:
                Returns the value of the corresponding common base 10 logarithm
                function for the argument.
                "number" is the number for wich we want to get the logarithm.
                "number" must be > 0.

	EXAMPLES:
                The result of @LOG(10) is equal to 1.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - MOD
	SINTAX:     
                @MOD(x,y)
                Each x and y can be either a number or a Cell. 

	DESCRIPTION:
                Returns the remainder of x divided by y.

	EXAMPLES:
                The result of @MOD(3,2) is equal to 1.
                The result of @MOD(3,-2) is equal to 1.
                The result of @MOD(-3,2) is equal to -1.
                The result of @MOD(-3,-2) is equal to -1.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - PI
	SINTAX:     
                @PI()

	DESCRIPTION:
                Returns the value of PI=3.1415926536.

	EXAMPLES:
                The result of @PI()/2 is equal to 1.57079.
                The result of @SIN(@PI()/2) is equal to 1.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - RAND
	SINTAX:     
                @RAND()

	DESCRIPTION:
                Returns a random number (0<=number<=1).

	EXAMPLES:
                The result of @RAND()*100 is a random number between 0 and 100.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - ROUND
	SINTAX:     
                @ROUND(argument , digit)
                Each argument and digit can be either a number or a Cell. 

	DESCRIPTION:
                Rounds the argument at the specified digit.
                digit must be an integer in such that digit>0.

	EXAMPLES:
                @ROUND(610,5765383 , 2) produces the result 610.6 .


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - SIN 
	SINTAX:     
		@SIN(number)
		@SIN(Cell)

	DESCRIPTION:

                Returns the sine of a given angle.
                The argument is any radian number.
                If the angle is in degrees you should use the following
                convertion formula: @SIN(argument*@PI()/180).

        EXAMPLES:
		The result of @SIN(@PI()) is equal to 0.00000000 .
                The result of @SIN(@PI()/2) is equal to 1.
                The result of @SIN(30*@PI()/180) is equal to 0.5.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - SQRT
	SINTAX:     
		@SQRT(number)
		@SQRT(Cell)

	DESCRIPTION:
		Returns the square root of the argument. in "number" <0
		the message #VALUE! should appear.

	EXAMPLES:

		The result of @SQRT(25) is equal to 5.
		The result of @SQRT(-25) is equal to "#VALUE!" message.
		The result of @SQRT(@ABS(-25)) is equal to 4.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - SUM
	SINTAX:     
		@SUM(number1,number2,...)
		@SUM(Cell1:Cell2)

	DESCRIPTION:
		Returns the the sum of all numbers of the argument 
		list (number1,number2,...).
		If the argument is a matrix, every blank cells or with no 
		numeric values inserted are ignored, if there is a contained 
		cell with an error message the result should be an error 
		message.

	EXAMPLES:
		The result of @SUM(1,2,3,4) is equal to 10.
		The result of @SUM(A1:B2), where Cells A1,A2,B1,B2 are each equal to
		1, is equal to 4.


-----------------------------------------------------------------------------
Math And Trignometric Functions 

FUNCTION - TAN
	SINTAX:     
		@TAN(number)
		@TAN(Cell)

	DESCRIPTION:
	        Returns the tangent of a given angle.
                The argument is any radian number.
                If the angle is in degrees you should use the following
                convertion formula: @TAN(argument*@PI()/180).

        EXAMPLES:
                The result of @TAN(0.523599) is equal to 0.577350.
                The result of @TAN(45*@PI()/180) is equal to 1.


-----------------------------------------------------------------------------
		

Abacus Functions(1)					   Abacus Functions(1)


		Information Functions
		---------------------

-----------------------------------------------------------------------------
Information Functions

FUNCTION - ISERR
	SINTAX:     
		ISERR(number)
		ISERR(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Information Functions

FUNCTION - ISNA
	SINTAX:     
		ISNA(number)
		ISNA(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Information Functions

FUNCTION - ISNUMBER
	SINTAX:     
		ISNUMBER(number)
		ISNUMBER(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Information Functions

FUNCTION - ISSTRING
	SINTAX:     
		ISSTRING(number)
		ISSTRING(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------


Abacus Functions(1)					   Abacus Functions(1)


		Logical Functions
		-----------------

-----------------------------------------------------------------------------
Logical Functions

FUNCTION - @IF 
	SINTAX:     
		@IF(logic-test , if-true-value, if-false-value)

		"logic-test" is any value or expression that can be evaluated
		as being TRUE or FALSE value.
		"if-true-value" is the returned value if "logic-test" is TRUE.
		if "if-true-value" is omited and "logic-test" is TRUE it will
		be returned 0.
		"if-false-value" is the returned value if "logic-test" is TRUE.
		if "if-false-value" is omited and "logic-test" is TRUE it will
		be returned 0.

	DESCRIPTION:


	EXAMPLES:


-----------------------------------------------------------------------------
Logical Functions

FUNCTION - TRUE 
	SINTAX:     
		@TRUE()

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Logical Functions

FUNCTION - FALSE 
	SINTAX:     
		@FALSE()

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------


Abacus Functions(1)					   Abacus Functions(1)


		Date And Time Functions
		-----------------------

-----------------------------------------------------------------------------
Date And Time Functions

FUNCTION - DAY 
	SINTAX:     
		DAY(number)
		DAY(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Date And Time Functions

FUNCTION - HOUR 
	SINTAX:     
		HOUR(number)
		HOUR(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Date And Time Functions

FUNCTION - MINUTE 
	SINTAX:     
		MINUTE(number)
		MINUTE(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Date And Time Functions

FUNCTION - MONTH 
	SINTAX:     
		MONTH(number)
		MONTH(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Date And Time Functions

FUNCTION - SECOND 
	SINTAX:     
		SECOND(number)
		SECOND(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Date And Time Functions

FUNCTION - TIMEVALUE 
	SINTAX:     
		TIMEVALUE(number)
		TIMEVALUE(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Date And Time Functions

FUNCTION - TODAY
	SINTAX:     
		TODAY(number)
		TODAY(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------


Abacus Functions(1)				       	   Abacus Functions(1)


		Text Functions
		--------------

-----------------------------------------------------------------------------
Text Functions

FUNCTION - CHAR 
	SINTAX:     
		CHAR(number)
		CHAR(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Text Functions

FUNCTION - CODE 
	SINTAX:     
		CODE(number)
		CODE(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Text Functions

FUNCTION - LENGTH 
	SINTAX:     
		LENGTH(number)
		LENGTH(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Text Functions

FUNCTION - LOWER 
	SINTAX:     
		LOWER(number)
		LOWER(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Text Functions

FUNCTION - PROPER 
	SINTAX:     
		PROPER(number)
		PROPER(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Text Functions

FUNCTION - STRINGF 
	SINTAX:     
		STRINGF(number)
		STRINGF(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Text Functions

FUNCTION - UPPER 
	SINTAX:     
		UPPER(number)
		UPPER(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Text Functions

FUNCTION - VALUE 
	SINTAX:     
		VALUE(number)
		VALUE(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------


Abacus Functions(1)					   Abacus Functions(1)


		Statistical Functions
		---------------------

-----------------------------------------------------------------------------
Statistical Functions

FUNCTION - AVG
	SINTAX:     
		AVG(number)
		AVG(Cell)

	DESCRIPTION:

	EXAMPLES:
-----------------------------------------------------------------------------
Statistical Functions

FUNCTION - COUNT
	SINTAX:     
		@COUNT(value1,value2,value3,...)
		@COUNT(Cell1:Cell2)

	DESCRIPTION:
		This function returns the number of elements of the given list 
		of arguments or rangeof cells.Cells which value is either
		blank or a string or even an error message will not be counted.

	EXAMPLES:
		The return value of @COUNT(1,1,1,1,1) is equal to 5.
		The return value of @COUNT(A1:A5) is 5 if all cells in the 
		range have a value. if there are blank cells each of them 
		counts as 0. for instance if A1=1,A2 and A3 are blank,
		A4="hello",A5=0, the reurn value will be 2. 
		

-----------------------------------------------------------------------------
Statistical Functions

FUNCTION - MAX
	SINTAX:     
		@MAX(value1,value2,value3,...)
		@MAX(Cell1:Cell2)

	DESCRIPTION:
		This function returns the major number included in the given list 
		of arguments or rangeof cells. Cells which value is either
		blank or a string or even an error message will considered.

	EXAMPLES:
		The return value of @MAX(1,4,3,5,4,3,6) is equal to 6.
		The return value of @MAX(A1:A5) is 5 if all cells in the 
		range have the following values: A1=1,A2 and A3 are blank,
		A4="hello",A5=5. 


-----------------------------------------------------------------------------
Statistical Functions

FUNCTION - MIN
	SINTAX:     
		@MIN(value1,value2,value3,...)
		@MIN(Cell1:Cell2)

	DESCRIPTION:
		This function returns the minor number included in the given list 
		of arguments or rangeof cells. Cells which value is either
		blank or a string or even an error message will considered.

	EXAMPLES:
		The return value of @MIN(1,4,3,5,4,3,6) is equal to 6.
		The return value of @MIN(A1:A5) is 1 if all cells in the 
		range have the following values: A1=1,A2 and A3 are blank,
		A4="hello",A5=5. 


-----------------------------------------------------------------------------