aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-10-22 08:49:43 +0000
committerPJ Fanning <fanningpj@apache.org>2021-10-22 08:49:43 +0000
commit5d5778d4071bb90f01960cd58ab554494d26bd86 (patch)
treee17ed0da174ace8cab04ee860ff2d68cb47aaed6 /poi/src
parente216997950365f8424b624a1f12e1f5f230eec24 (diff)
downloadpoi-5d5778d4071bb90f01960cd58ab554494d26bd86.tar.gz
poi-5d5778d4071bb90f01960cd58ab554494d26bd86.zip
fix names of t.dist functions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894468 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src')
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java4
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/functions/TDist2t.java8
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/functions/TDistRt.java8
-rw-r--r--poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDist2t.java2
-rw-r--r--poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDistRt.java4
5 files changed, 13 insertions, 13 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java b/poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java
index 3e3c9bf955..6647eb581a 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java
@@ -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);
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/TDist2t.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/TDist2t.java
index 990df73f55..1276d0a9dd 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/functions/TDist2t.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/TDist2t.java
@@ -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>
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/TDistRt.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/TDistRt.java
index 1863d69a8d..971aa26423 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/functions/TDistRt.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/TDistRt.java
@@ -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>
*
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDist2t.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDist2t.java
index 761e01ff58..c624dad67b 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDist2t.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDist2t.java
@@ -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);
}
}
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDistRt.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDistRt.java
index 301b0fb263..d0bca918ae 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDistRt.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestTDistRt.java
@@ -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);
}
}