commit
message
Adding tests for F.INV mapped to FINV
author
Ben Vogt <[email protected]>
date
2017-01-08 21:17:02
stats
1 file(s) changed,
9 insertions(+),
1 deletions(-)
files
tests/SheetFormulaTest.ts
1diff --git a/tests/SheetFormulaTest.ts b/tests/SheetFormulaTest.ts
2index aa5b143..76709a6 100644
3--- a/tests/SheetFormulaTest.ts
4+++ b/tests/SheetFormulaTest.ts
5@@ -328,8 +328,14 @@ testFormula('=FDIST(15.35, 7, 6, true)', 0.9980694465675269);
6
7
8 // Test FINV
9-// TODO: This should work.
10-// testFormula('=FINV(0.88,1.013, 1.01)', 0.03638945475);
11+// TODO: In GS, this is really called F.INV
12+/*
13+ * FINV Calculates the inverse of the right-tailed F probability distribution. Also called the Fisher-Snedecor distribution or Snedecor’s F distribution.
14+ * F.INV Calculates the inverse of the left-tailed F probability distribution. Also called the Fisher-Snedecor distribution or Snedecor’s F distribution.
15+ *
16+ * F.INV is left-tailed. FINV is right-tailed.
17+ */
18+testFormula('=FINV(0.42, 2, 3)', 0.6567804059458624);
19
20 // Test FISHER
21 testFormula('=FISHER(0.962)', 1.972066740199461);