{"text_format":"3","workbook":"xls","n_sheets":2,"sheets":["Read Me","Trend"],"not_rendered":{"external_links":1,"defined_names":1},"read":"whole","date_system":"1900","formulas":"cached_only"}

{"sheet":"Read Me","index":0,"n_rows":11,"n_cols":1,"rows_kept":11,"flags":["formulas_cached_only"]}
["This spreadsheet contains various test cases for the functions: TREND"]
["Name of the main junit test class which uses this spreadsheet:"]
["org.apache.poi.ss.formula.functions.TestTrendFunctionsFromSpreadsheet"]
["(The content of cell 'Read Me'!A3 is confirmed by the test)"]
[]
["Every sheet besides this first one contains formula evaluation test cases in a standardised format."]
["On row 4 of each sheet, in columns B,C,D there are the column headings \"Formula\", \"Expected Result\" and \"Comment\""]
["The test iterates down from row 5 onward  until a the text \"<end>\" is found in column A.   Rows with \"<skip>\" in column A are ignored (useful for currently unsupported behaviour).  Otherwise column A can be used for commenting the group of rows below. "]
["If the evaluated result of column B does not match the expected result in column C, the junit test will report a failure.  Test failures get annotated with the section and row comments, if any."]
["Besides the first 4 columns, row 5 onwards, the junit test does not inspect any other cells in the sheet.  The other cells can be used freely to set up test data."]
["Care should be taken to not only make the values in column C match those in column B, but also to make sure column C contains only simple literal values.  This can be achieved easily by 'pasting special' from column B to C, selecting the 'as values' option."]

{"sheet":"Trend","index":1,"n_rows":112,"n_cols":17,"rows_kept":112,"flags":["formulas_cached_only"]}
[null,"Sheet Comment:","Trend tests",null,null,"Database",{"$nulls":3},234]
[{"$nulls":5},12,24,5,2,45]
[null,"Formula","Expected Result","Comment",null,213,24,45,32,34,{"$error":"#REF!"}]
[{"$nulls":5},4,654,1,34,3509.7038973298645,3514.7654513948432,3509.7038973298645,12,4,324]
["Basic functionality",{"$nulls":4},23423,234,45,34,3509.7038973298645,3514.7654513948432,3509.7038973298645,213,23423,234]
[null,32.013139756562545,32.013139756562545,"Forcing predicted line to pass through origin",null,423,567,4,32423,3509.7038973298645,3514.7654513948432,3509.7038973298645,24,654,234]
[null,3477.647388,3477.647388,"No new x values given; Note: rounded",null,423,57,23,42,3509.7038973298645,3514.7654513948432,3509.7038973298645,24,234,3]
[null,-1455.2277777777763,-1455.2277777777763,"Only y and new x values given",null,532,324,3,44,3509.7038973298645,3514.7654513948432,3509.7038973298645,5,1,4]
[null,1733.583694,1733.583694,"Multiple columns in area for x and y values; Note: rounded",null,2342,234,4,1,21.024723555370826,null,null,45,45,5]
[null,1554.4686347554757,1554.4686347554757,"Multiple columns again",null,323,234,5,2,76.33333333333333,23.11943086501971,23.11943086501971]
[null,13.376026,13.376026,"Single rows for x and y values; Note: rounded",{"$nulls":4},{"$error":"#REF!"},0.01834862385321101,23.93328008954477,null,12,4,324]
[null,12,12,"Reference same cells for both x and y values; Note: rounded",{"$nulls":4},333.9623590213598,333.9623590213598,333.9623590213598,null,24,654,3]
[null,5,5,"Constant value for x and y + forcing line to pass through origin; Note: rounded",null,34,23,null,301.79122431833787,301.79122431833787,301.79122431833787,null,5,1,234]
[null,1.594595,1.594595,"Negative values; Note: rounded",null,324,123,null,303.39978105348894,333.9623590213598,null,null,213,23423,4]
[null,-2791.04684,-2791.04684,"Multiple x variables for each y; Note: rounded",null,null,"sa",null,305.00833778864006,301.79122431833787,null,null,24,234,234]
[null,1733.583694,1733.583694,"Multiple columns for x and y values; Note: rounded",null,443,4,null,333.9623590213598,{"$nulls":3},45,45,5]
[null,-3087.920731,-3087.920731,"Even more x variables for each y; Note: rounded",{"$nulls":4},301.79122431833787,{"$nulls":3},23.11943086501971,23.11943086501971,23.11943086501971,20.48058640974148,{"$error":"#N/A"}]
[null,11.999999999999995,12,"Multiple x variables for each y (this time with rows)",{"$nulls":4},303.39978105348894,{"$nulls":3},20.48058640974148,22.37956793363329,22.37956793363329,20.488807108979106,{"$error":"#N/A"}]
[null,-3970.014038,-3970.014038,"Another test with a given range for new_x's; Note: rounded",{"$nulls":4},305.00833778864006,{"$nulls":3},22.37956793363329,22.37956793363329,22.37956793363329,20.497027808216735,{"$error":"#N/A"}]
[null,211.38445872604095,211.38445872604095,"Multiple columns for x's and new_x's + passing through origin",{"$nulls":4},{"$error":"#N/A"},{"$nulls":3},20.488807108979106,20.48058640974148,{"$error":"#N/A"},{"$error":"#N/A"},{"$error":"#N/A"}]
[null,217.033333,217.033333,"Multiple columns for x's and new_x's; Note: rounded",null,null,12,0,333.9623590213598,333.9623590213598,333.9623590213598,333.9623590213598,22.37956793363329,20.488807108979106,{"$error":"#N/A"},{"$error":"#N/A"},{"$error":"#N/A"}]
[null,5,5,"Multiple same y values",null,null,123,123,301.79122431833787,301.79122431833787,301.79122431833787,301.79122431833787,20.497027808216735,20.497027808216735,{"$error":"#N/A"},{"$error":"#N/A"},{"$error":"#N/A"}]
[null,13.541253558551668,13.541253558551668,"Rows for x and y + new_x's different shape",null,null,0,45,303.39978105348894,303.39978105348894,303.39978105348894,303.39978105348894]
[null,3509.703897,3509.703897,"Different shape for new_x's; Note: rounded",null,null,3,5,305.00833778864006,305.00833778864006,305.00833778864006,305.00833778864006]
[null,20.924504,20.924504,"Another different shape for new_x's; Note:rounded",null,null,13,7]
[null,1733.335599,1733.335599,"Multiple columns for x and y and different shape for new_x's",{"$nulls":4},11.001376052577529,10.648141302115425,10.687389607722325,10.663093037584721,3477.647388251665,12,3477.647388251665,5]
[{"$nulls":6},5,5,11.001376052577529,10.648141302115425,10.687389607722325,10.663093037584721,null,12,3477.647388251665,5]
[{"$nulls":6},5,5,11.001376052577529,10.648141302115425,10.687389607722325,10.663093037584721,null,12,2414.721034606094,5]
[{"$nulls":6},5,5,11.001376052577529,10.648141302115425,10.687389607722325,10.663093037584721,null,12,3123.3386037031414,5]
[{"$nulls":13},12,2561.5061024904826,5]
[{"$nulls":6},-5,-7,{"$nulls":5},12,3421.970293536897,5]
[{"$nulls":6},6,-4,{"$nulls":5},12,2971.491981753774,5]
[{"$nulls":6},-20,0,{"$nulls":5},12,3123.3386037031414,5]
[{"$nulls":7},6,{"$nulls":5},12,3123.3386037031414]
[{"$nulls":7},-4,{"$nulls":5},12,{"$error":"#N/A"}]
[{"$nulls":13},12,{"$error":"#N/A"}]
[{"$nulls":13},12,{"$error":"#N/A"}]
[{"$nulls":4},12,24,5,2,213,24,45,32,null,12,{"$error":"#N/A"}]
[{"$nulls":4},213,24,45,32,{"$nulls":5},12,{"$error":"#N/A"}]
[{"$nulls":4},4,654,1,34,23423,234,45,34,null,12,{"$error":"#N/A"}]
[{"$nulls":4},23423,234,45,34,{"$nulls":5},12,{"$error":"#N/A"}]
[{"$nulls":4},423,567,4,32423,{"$nulls":5},12,{"$error":"#N/A"}]
[{"$nulls":4},423,57,23,42,{"$nulls":5},12,{"$error":"#N/A"}]
[{"$nulls":4},532,324,3,44,{"$nulls":5},12,{"$error":"#N/A"}]
[{"$nulls":4},2342,234,4,1,{"$nulls":5},12,{"$error":"#N/A"}]
[{"$nulls":4},323,234,5,2]
[{"$nulls":4},24,null,2]
[{"$nulls":4},24,null,32,null,23.11943086501971]
[{"$nulls":4},654,null,34,null,20.48058640974148]
[{"$nulls":4},234,null,34,null,22.37956793363329]
[{"$nulls":4},567,null,32423,null,20.488807108979106]
[{"$nulls":4},57,null,42,null,22.37956793363329]
[{"$nulls":4},324,null,44,null,20.497027808216735]
[{"$nulls":4},234,null,1]
[{"$nulls":4},234,null,2,null,23.11943086501971]
[{"$nulls":8},22.37956793363329]
[{"$nulls":4},1733.5836943463771,19.409969742856955,{"$error":"#REF!"},null,22.37956793363329]
[{"$nulls":4},1733.5836943463771,19.409969742856955]
[]
[]
[]
["Not yet implemented"]
["<skip>",12,12,"Only one given y value + forcing line to pass through origin; Not yet working in current version of math library"]
["<skip>",12,12,"Only one y value; Not yet working in current version of math library"]
[null,12,12,"All x values the same; Not working in math library",12,24]
[null,5,5,"All x's and y's the same; Not working in math library",12,24]
["<skip>",-20,-20,"Negative values + only one value for x and y values; Not working in math library",12,654]
["<skip>",57,57,"Only one value for x, y, and new x values; Not yet working in current version of math library",12,234]
["<skip>",0,0,"Zero values for x and y; Not yet working in current version of math library",12,567]
["<skip>",5,5,"Constant value for x and y; Not yet working in current version of math library",12,57]
["<skip>",12.000000000000021,12.000000000000021,"More x variables than samples",12,324]
["<skip>",{"$error":"#REF!"},{"$error":"#REF!"},"Passing new x value + only one y value is given; Not implemented at all because sample size is too small",12,234]
[{"$nulls":4},12,234]
[]
[{"$nulls":4},12,12]
[{"$nulls":4},{"$error":"#REF!"},0.6622437307523096]
[]
[]
[]
["Corner cases",{"$nulls":5},5,5,5,5]
[{"$nulls":6},5,5,5,4]
[null,3,3,"Special matrices; Note: rounded",null,null,5,5,5,4]
[null,0.122881,0.122881,"More duplicate x values; Note: rounded; this one probably works because of the large sample size, unlike the others with duplicate x values",null,null,5,null,5]
[null,{"$error":"#REF!"},{"$error":"#REF!"},"More rows for x than y values",{"$nulls":4},3,2,4]
[null,4031.422222,4031.422222,"Use named area instead of range; Note: this test fails due to minor rounding errors",null,null,3,3,6,4,8]
[null,32.013139756562545,32.013139756562545,"Named area + forcing line to pass through origin",null,null,3,3,9,6,12]
[{"$nulls":6},20,3]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},"Empty cells",null,null,4,3]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},"String instead of number"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},"Only x values given",null,null,0]
[null,{"$error":"#REF!"},{"$error":"#REF!"},"Different shapes for x and y values"]
[{"$nulls":5},1,1,2,3,10,12]
[{"$nulls":5},3,2,67,6,5,4]
[{"$nulls":5},4.5,3,7,6,4,123]
["Array functions",{"$nulls":4},6,4,6,7,7,32]
[null,23.119431,23.119431,"Array function with column",null,7.5,5,5,4,2,23]
[null,20.480586,20.480586,"Array function with column",null,1,2,2,3,4,12]
[null,22.379568,22.379568,"Array function with column",null,6,4,67,6,5,4]
[null,20.488807,20.488807,"Array function with column",null,9,6,7,6,4,123]
[null,22.379568,22.379568,"Array function with column",null,12,8,6,7,7,32]
[null,20.497028,20.497028,"Array function with column",null,15,10,5,4,2,23]
[null,23.119431,23.119431,"Array function with different shape for new_x's"]
[null,22.379568,22.379568,"Array function with different shape for new_x's",null,null,0.12288114177482168,1.0000000000000004,0.10883119583162193]
[null,22.379568,22.379568,"Array function with different shape for new_x's"]
[{"$nulls":6},3,3,3]
[{"$nulls":6},3,3,3]
[{"$nulls":6},3,3,3]
[{"$nulls":6},3]
[]
[{"$nulls":6},5,5]
["<end>",{"$nulls":5},5,5]
[{"$nulls":6},5,5]