Difference between revisions of "Manuals/calci/CALCITOCHECK"

From ZCubes Wiki
Jump to navigation Jump to search
Line 1: Line 1:
1) '''ROWS''' function
+
='''ROWS''' function=
  
 
*The function displays #NULL error with arguments as array values.
 
*The function displays #NULL error with arguments as array values.
Line 10: Line 10:
 
This will work only in CALCI as the {} notation for array is useful only in spreadsheet platforms and similar languages. In ZOS arrays are to be indicated by [] and Objects will use {} notation.
 
This will work only in CALCI as the {} notation for array is useful only in spreadsheet platforms and similar languages. In ZOS arrays are to be indicated by [] and Objects will use {} notation.
  
2)'''PRODUCT''' function
+
='''PRODUCT''' function=
 
*If the cells in calci have numerical as well as text and empty cells, PRODUCT function assigns '0' to text and empty cells (instead they should be ignored).
 
*If the cells in calci have numerical as well as text and empty cells, PRODUCT function assigns '0' to text and empty cells (instead they should be ignored).
 
e.g. PRODUCT(A1:A5) returns '0' where A1=2,A2=4,A3=TEXT,A4= ,A5=1
 
e.g. PRODUCT(A1:A5) returns '0' where A1=2,A2=4,A3=TEXT,A4= ,A5=1
Line 20: Line 20:
  
  
3)'''OR''' function
+
='''OR''' function=
 
*If the cells in calci have numerical as well as text and empty cells, OR function assigns '0'(FALSE) to text and empty cells (instead they should be ignored).
 
*If the cells in calci have numerical as well as text and empty cells, OR function assigns '0'(FALSE) to text and empty cells (instead they should be ignored).
 
e.g. OR(TEXT, ) returns ''FALSE''
 
e.g. OR(TEXT, ) returns ''FALSE''
Line 29: Line 29:
  
  
4)'''HOUR''','''MINUTE''','''SECOND'''  
+
='''HOUR''','''MINUTE''','''SECOND''' =
 
* If the hour value >24, or Minute value > 59 or Second value > 59, Calci does not automatically advance the time with respect to input times.
 
* If the hour value >24, or Minute value > 59 or Second value > 59, Calci does not automatically advance the time with respect to input times.
  
Line 52: Line 52:
  
  
5)'''GOLDENRATIO'''
+
='''GOLDENRATIO'''=
  
 
a)Suggestion: Argument name can be changed to 'logic_value' instead of 'smallphi'
 
a)Suggestion: Argument name can be changed to 'logic_value' instead of 'smallphi'
Line 88: Line 88:
  
  
6)'''HYPERLINK'''
+
='''HYPERLINK'''=
 
*Link to specified location gets created in Calci. But document/website does not open up.
 
*Link to specified location gets created in Calci. But document/website does not open up.
 
e.g.  
 
e.g.  
Line 94: Line 94:
  
  
7)'''RANDOMNUMBERGENERATION''', '''RANDOMNUMBERGENERATIONUNIFORM''', '''RANDOMUNIFORM'''
+
='''RANDOMNUMBERGENERATION''', '''RANDOMNUMBERGENERATIONUNIFORM''', '''RANDOMUNIFORM'''=
 
*Random number output is not displayed. Same command is displayed on space cube.
 
*Random number output is not displayed. Same command is displayed on space cube.
 
e.g. =RANDOMNUMBERGENERATION(3, 4, "Uniform", TRUE, 3, 4)
 
e.g. =RANDOMNUMBERGENERATION(3, 4, "Uniform", TRUE, 3, 4)
  
  
8)'''ANOVASINGLEFACTOR'''
+
='''ANOVASINGLEFACTOR'''=
 
*Function displays correct results for analysis by "COLUMNS" option. But is incorrect for "ROWS"
 
*Function displays correct results for analysis by "COLUMNS" option. But is incorrect for "ROWS"
 
e.g. Consider the example on page http://wiki.zcubes.com/Manuals/calci/ANOVASINGLEFACTOR
 
e.g. Consider the example on page http://wiki.zcubes.com/Manuals/calci/ANOVASINGLEFACTOR
Line 105: Line 105:
  
  
9)'''HISTOGRAM(Array, BinRange, NewTableFlag)'''
+
='''HISTOGRAM(Array, BinRange, NewTableFlag)'''=
  
 
Propery of NewTableFlag:
 
Propery of NewTableFlag:
Line 121: Line 121:
  
  
10)'''MOVINGAVERAGE(Array, PeriodInterval, NewTableFlag)'''
+
='''MOVINGAVERAGE(Array, PeriodInterval, NewTableFlag)'''=
 
*<math>NewTableFlag</math> if TRUE, should display output on new zspace cube.
 
*<math>NewTableFlag</math> if TRUE, should display output on new zspace cube.
 
*<math>NewTableFlag</math> if FALSE, should display output on same calci sheet of the data and command.
 
*<math>NewTableFlag</math> if FALSE, should display output on same calci sheet of the data and command.
Line 129: Line 129:
  
  
11)'''EXPONENTIALSMOOTHING(Array, DampingFactor, NewTableFlag)'''
+
='''EXPONENTIALSMOOTHING(Array, DampingFactor, NewTableFlag)'''=
 
*<math>NewTableFlag</math> if TRUE, should display output on new zspace cube.
 
*<math>NewTableFlag</math> if TRUE, should display output on new zspace cube.
 
*<math>NewTableFlag</math> if FALSE, should display output on same calci sheet of the data and command.
 
*<math>NewTableFlag</math> if FALSE, should display output on same calci sheet of the data and command.
Line 137: Line 137:
  
  
12)'''MATCH(lkup_val, lkup_arr, m_type)'''
+
='''MATCH(lkup_val, lkup_arr, m_type)'''=
 
Issue: Function does not work in ZOS if lkup_arr represented with {} brackets, whereas works with [ ].
 
Issue: Function does not work in ZOS if lkup_arr represented with {} brackets, whereas works with [ ].
  

Revision as of 14:11, 20 January 2014

ROWS function

  • The function displays #NULL error with arguments as array values.

e.g. ROWS({1,2;3,4;5,6})

Expected result: 3

Observed result: #NULL

ROWS EXPLANATION

This will work only in CALCI as the {} notation for array is useful only in spreadsheet platforms and similar languages. In ZOS arrays are to be indicated by [] and Objects will use {} notation.

PRODUCT function

  • If the cells in calci have numerical as well as text and empty cells, PRODUCT function assigns '0' to text and empty cells (instead they should be ignored).

e.g. PRODUCT(A1:A5) returns '0' where A1=2,A2=4,A3=TEXT,A4= ,A5=1

Expected result: 8

Observed result: 0

  • Function works correctly with logical values. i.e. assigns TRUE=1, FALSE=0


OR function

  • If the cells in calci have numerical as well as text and empty cells, OR function assigns '0'(FALSE) to text and empty cells (instead they should be ignored).

e.g. OR(TEXT, ) returns FALSE

Expected result: #NULL

Observed result: FALSE


HOUR,MINUTE,SECOND

  • If the hour value >24, or Minute value > 59 or Second value > 59, Calci does not automatically advance the time with respect to input times.

e.g. HOUR("25:33") displays '#ERROR' (Output can be '1')

MINUTE("12:72:20") displays '0' (Output can be '12')

SECOND("12:10:72") displays '0' (Output can be '12')


  • Function with serial numbers of time as input -

TIMEVALUE("3:30") gives 0.1458333333284827 (which is correct)

If the above serial number is used as input to HOUR, MINUTE and SECOND functions, following are the observations :

  • HOUR(0.1458333333284827) displays '19' (Expected Output: '3')
  • MINUTE(0.1458333333284827) displays '0' (Expected Output: '30')
  • SECOND(0.1458333333284827) displays '0' (correct. But displays '0' for other serial numbers too)

The output is same(i.e. 19,0,0) for any other serial numbers (e.g 0.9479166666642413 for "10:45 PM").


GOLDENRATIO

a)Suggestion: Argument name can be changed to 'logic_value' instead of 'smallphi'

Reason: Argument can be TRUE or FALSE or 1 or 0 for this function. 'smallphi' and 'capitalphi' are the output values obtained.

b)Calci does not give error for -

*Invalid arguments like GOLDENRATIO(7), GOLDENRATIO("ABCDEF"), GOLDENRATIO(-8)
*Multiple arguments like GOLDENRATIO(100,77)

c)Calci help displays incorrect values for smallphi and capitalphi.

  • Observed result:

GOLDENRATIO(TRUE) returns 1.618033988749895

GOLDENRATIO(FALSE) returns 0.6180339887498948


  • Expected result:

--see exp -- GOLDENRATIO(TRUE) returns 0.6180339887498948, value of capitalphi Φ --see exp -- GOLDENRATIO(FALSE) returns 1.618033988749895, value of smallphi φ

d)If argument is ignored, i.e. GOLDENRATIO()

  • Observed result: 0.6180339887498948, value of capitalphi Φ
  • Expected result: 1.618033988749895, value of smallphi φ

Reason: smallphi is default value for Goldenratio. Capitalphi is the conjugate value.

GOLDENRATIO EXPLANATION

GOLDENRATIO(TRUE) returns 1.618033988749895 GOLDENRATIO(FALSE) returns 0.6180339887498948 This is correct. parameter is smallPhi is true, If so answer should be 1.61 etc. if false should be 0.6181 etc. If argument is not defined or is not false, it is considered to be true. So junk value giving smallPhi equivalent is safe. - jp


HYPERLINK

  • Link to specified location gets created in Calci. But document/website does not open up.

e.g.

=HYPERLINK("http://www.google.com","Click here")


RANDOMNUMBERGENERATION, RANDOMNUMBERGENERATIONUNIFORM, RANDOMUNIFORM

  • Random number output is not displayed. Same command is displayed on space cube.

e.g. =RANDOMNUMBERGENERATION(3, 4, "Uniform", TRUE, 3, 4)


ANOVASINGLEFACTOR

  • Function displays correct results for analysis by "COLUMNS" option. But is incorrect for "ROWS"

e.g. Consider the example on page http://wiki.zcubes.com/Manuals/calci/ANOVASINGLEFACTOR

=ANOVASINGLEFACTOR(A1:B4,0.05,"ROWS",TRUE) displays same result as with COLUMNS (which is incorrect). Only COLUMNS 1,2 are replaced with ROW 1, 2.


HISTOGRAM(Array, BinRange, NewTableFlag)

Propery of NewTableFlag:

  • can be a logical value TRUE or FALSE. If omitted, Calci assumes it to be FALSE.
  • If is TRUE, the result is displayed on new zspace sheet.

Output Observed:

For TRUE, result table in Calci shows (both on new zspace)

  • Bin, Frequency columns and
  • two more columns showing Bin and Frequency in descending order

For FALSE, Calci displays only Bin and Frequency columns (on new zspace).


MOVINGAVERAGE(Array, PeriodInterval, NewTableFlag)

  • if TRUE, should display output on new zspace cube.
  • if FALSE, should display output on same calci sheet of the data and command.

Observed Output:

  • Output displayed on new zspace cube for both TRUE and FALSE.


EXPONENTIALSMOOTHING(Array, DampingFactor, NewTableFlag)

  • if TRUE, should display output on new zspace cube.
  • if FALSE, should display output on same calci sheet of the data and command.

Observed Output:

  • Output displayed on new zspace cube for both TRUE and FALSE.


MATCH(lkup_val, lkup_arr, m_type)

Issue: Function does not work in ZOS if lkup_arr represented with {} brackets, whereas works with [ ].

  • ZCalci works with both type of array representation {}, [] and displays correct results -

e.g.

  • MATCH(44,{40,42,44},1) does not work in ZOS.
  • MATCH(44,[40,42,44],1) returns relative position of '44' as 3 in ZOS.

MATCH EXPLANATION

See after new release if issue persists.