Contact

R.DT Function (Gnumeric)

Statistical Intermediate Gnumeric

Calculate Student t density and log-density with Gnumeric R.DT. Check fractional degrees of freedom, symmetry, large observations and input errors.

Verification status: 20 reference, boundary and advanced-check formulas were recalculated with Gnumeric 1.12.57 ssconvert. Saved identities, the blank input and numerical results were independently checked. Gnumeric 1.12.62 was source-checked only. How formula examples are checked

Quick answer: =R.DT(0,1) gives 0.318309886184 in Gnumeric 1.12.57.

Availability and version history

  • Introduced: First release not established; present in the retained 1.12.57 source.
  • Supported in: Gnumeric 1.12.62; no retirement is established.
  • Scope: Desktop Gnumeric with its Statistical Functions From R plugin. English comma-separated formulas are shown.
  • Checked: October 14, 2026. Tables and the named advanced check use 1.12.57 ssconvert. Current 1.12.62 source was inspected; that release was not executed.

What R.DT returns

R.DT returns the density of the standard Student t distribution at x. It is centered at zero, and degrees_freedom controls the tail shape. It does not return a one- or two-tailed p-value and does not estimate a location or scale from data. Versioned function help.

Syntax and arguments

=R.DT(x,degrees_freedom[,give_log])
  • x: real observation on the standard t scale.
  • degrees_freedom: required positive real value; fractional values are allowed.
  • give_log: optional FALSE; TRUE requests natural log-density. A nonzero numeric flag, such as 2 in the boundary test, is treated as true.

Brackets mark optional arguments; do not type them. Current worksheet implementation.

Reproducible examples

These self-contained formulas were recalculated natively. Ordinary-domain results were checked against independent mathematics; invalid-model observations are identified separately below. Results are rounded to twelve decimal places, or thirteen significant digits for small nonzero values. This is presentation precision, not a universal accuracy guarantee.

Formula Gnumeric 1.12.57 result
=R.DT(0,1) 0.318309886184
=R.DT(1,1) 0.159154943092
=R.DT(-1,1) 0.159154943092
=R.DT(0,2) 0.353553390593
=R.DT(2,5) 0.065090310326
=R.DT(2,2.5) 0.06796349051
=R.DT(0,1,TRUE()) -1.144729885849
=R.DT(2,5,TRUE()) -2.731979583761

Practical worksheet

With one degree of freedom, the density is 1/(PI()*(1+x^2)), the standard Cauchy density. At zero it is approximately 0.318309886184; at either x=1 or x=−1 it is approximately 0.159154943092.

For x=2 and 5 degrees of freedom, density is approximately 0.065090310326. A density height does not itself tell you the probability beyond x=2; that requires integration or the matching cumulative function.

Advanced interpretation and checks

For ν>0 the density is GAMMA((ν+1)/2)/(SQRT(ν*PI())*GAMMA(ν/2))*(1+x^2/ν)^(-(ν+1)/2). The function’s direct log option corresponds to the logarithm of this expression.

The saved advanced check compares x=1 and x=−1 at the same degree of freedom. Symmetry holds about zero. The large-x Cauchy example retains a small positive density near 3.183098861835×10^−13 and a log-density near −28.775751001779; it is not rounded to zero in the table.

The saved advanced-check result for =R.DT(1,1)-R.DT(-1,1) was 0.

Boundaries and troubleshooting

Degrees of freedom must be positive; zero and negative values produced #NUM!. The 2.5-degree reference confirms that fractional degrees are not silently rounded. Numeric text was converted, whereas nonnumeric x or flag text produced #VALUE!.

If your data have location μ and positive scale s, a separately specified location-scale t model has density R.DT((x-μ)/s,ν)/s. The division by s is essential for a density, although the tested function itself has no location or scale arguments. The standard t distribution has heavy tails; do not use a normal density as an interchangeable formula.

F5 is genuinely empty, rather than a cell containing an empty string. #NUM! can represent an unrepresentable infinite mathematical endpoint as well as an invalid numeric domain; the distinctions above matter.

Formula Gnumeric 1.12.57 result
=R.DT(0,0) #NUM!
=R.DT(0,-1) #NUM!
=R.DT("1",1) 0.159154943092
=R.DT("abc",1) #VALUE!
=R.DT(F5,1) 0.318309886184
=R.DT(1,1,2) -1.837877066409
=R.DT(1,1,"abc") #VALUE!
=R.DT(1) #N/A
=R.DT(1,1,0,1) #N/A
=R.DT(1000000,1) 3.183098861835E-13
=R.DT(1000000,1,TRUE()) -28.775751001779

Official evidence and checking scope

The relevant complete worksheet callback and main calculation helper are unchanged between the inspected versions. That does not establish later-version numerical execution. Both stale and uncached SUM controls recalculated correctly. Native XML identities were checked; secondary ODF exports retain these functions with the ORG.GNUMERIC namespace. GUI entry, other locales and other spreadsheet products were not tested.