fix names of t.dist functions

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-10-22 08:49:43 +00:00
parent e216997950
commit 5d5778d407
5 changed files with 13 additions and 13 deletions

View File

@ -173,8 +173,8 @@ public final class AnalysisToolPak implements UDFFinder {
r(m, "TBILLEQ", null);
r(m, "TBILLPRICE", null);
r(m, "TBILLYIELD", null);
r(m, "TDIST.2T", TDist2t.instance);
r(m, "TDIST.RT", TDistRt.instance);
r(m, "T.DIST.2T", TDist2t.instance);
r(m, "T.DIST.RT", TDistRt.instance);
r(m, "TEXTJOIN", TextJoinFunction.instance);
r(m, "WEEKNUM", WeekNum.instance);
r(m, "WORKDAY", WorkdayFunction.instance);

View File

@ -21,9 +21,9 @@ import org.apache.poi.ss.formula.OperationEvaluationContext;
import org.apache.poi.ss.formula.eval.*;
/**
* Implementation for Excel TDIST.2T() function.
* Implementation for Excel T.DIST.2T() function.
* <p>
* <b>Syntax</b>:<br> <b>TDIST.2T </b>(<b>X</b>,<b>Deg_freedom</b>)<br>
* <b>Syntax</b>:<br> <b>T.DIST.2T </b>(<b>X</b>,<b>Deg_freedom</b>)<br>
* <p>
* Returns the two-tailed Student's t-distribution.
*
@ -36,8 +36,8 @@ import org.apache.poi.ss.formula.eval.*;
* </ul>
*
* <ul>
* <li>If any argument is non-numeric, TDIST.2T returns the #VALUE! error value.</li>
* <li>If Deg_freedom &lt; 1, TDIST.2T returns the #NUM! error value.</li>
* <li>If any argument is non-numeric, T.DIST.2T returns the #VALUE! error value.</li>
* <li>If Deg_freedom &lt; 1, T.DIST.2T returns the #NUM! error value.</li>
* <li>If x &lt; 0, then T.DIST.2T returns the #NUM! error value.</li>
* <li>The Deg_freedom argument is truncated to an integer.
* </ul>

View File

@ -22,9 +22,9 @@ import org.apache.poi.ss.formula.OperationEvaluationContext;
import org.apache.poi.ss.formula.eval.*;
/**
* Implementation for Excel TDIST.RT() function.
* Implementation for Excel T.DIST.RT() function.
* <p>
* <b>Syntax</b>:<br> <b>TDIST.RT </b>(<b>X</b>,<b>Deg_freedom</b>)<br>
* <b>Syntax</b>:<br> <b>T.DIST.RT </b>(<b>X</b>,<b>Deg_freedom</b>)<br>
* <p>
* Returns the right-tailed Student's t-distribution.
*
@ -37,8 +37,8 @@ import org.apache.poi.ss.formula.eval.*;
* </ul>
*
* <ul>
* <li>If any argument is non-numeric, TDIST.RT returns the #VALUE! error value.</li>
* <li>If Deg_freedom &lt; 1, TDIST.RT returns the #NUM! error value.</li>
* <li>If any argument is non-numeric, T.DIST.RT returns the #VALUE! error value.</li>
* <li>If Deg_freedom &lt; 1, T.DIST.RT returns the #NUM! error value.</li>
* <li>The Deg_freedom argument is truncated to an integer.
* </ul>
*

View File

@ -71,7 +71,7 @@ final class TestTDist2t {
addRow(sheet, 2, 60, "Degrees of freedom");
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
assertDouble(fe, cell, "TDIST.2T(A2,A3)", 0.054644930, 0.01);
assertDouble(fe, cell, "T.DIST.2T(A2,A3)", 0.054644930, 0.01);
}
}

View File

@ -71,8 +71,8 @@ final class TestTDistRt {
addRow(sheet, 2, 60, "Degrees of freedom");
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
assertDouble(fe, cell, "TDIST.RT(A2,A3)", 0.027322465, 0.01);
assertDouble(fe, cell, "TDIST.RT(-A2,A3)", 0.027322465, 0.01);
assertDouble(fe, cell, "T.DIST.RT(A2,A3)", 0.027322465, 0.01);
assertDouble(fe, cell, "T.DIST.RT(-A2,A3)", 0.027322465, 0.01);
}
}