CodeCogs - A iteractive open source Numerical library in C/C++, with wrappers for .NET and Excel Welcome... Login
Site Map
shopping cart
OSX compatibleWindows compatibleLinux compatible
Search CodeCogs
Numerical Components
Worked Examples

Valid RSS

mathsspecial

T

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 2.34
sub units 0.00
add a commercial licence to your cart
0
viewed 1615 times and licensed 9 times

Evaluates the Owen's T function.

Controller: CodeCogs    Contact Controller

+View version details
Contents hide toc

Interface

#include <codecogs/maths/special/t.h>

using namespace Maths::Special;

double t (double h, double a)
Evaluates the Owen's T function.
ExcelReal cc_t (Real h, Real a)
This function is available as a Microsoft Excel add-in.

Function Documentation

Add calculator to website or email
 
doubletdoubleh
doublea )
This component calculates the T function of Owen with given arguments h and a. This function is useful for computation of the bivariate normal distribution and the distribution of a skewed normal distribution. Although it was originally formulated in terms of the bivariate normal function, the function can be defined more directly as

(1)
\displaystyle \mathrm{T}(h, a) = \frac{1}{2\pi} \int_0^a \frac{e^{-\frac{1+x^2}{2}h^2}}{1+x^2} \mathrm{d}x

In the following example, the T function is evaluated with the h argument fixed to 1 and the a argument varying in the interval from 1 to 3 with step 0.2.
Example:
#include <codecogs/maths/special/t.h>
#include <iostream>
#include <iomanip>
 
int main() 
{
  std::cout << std::setprecision(10);
  for (double a = 1; a <= 3.1; a += 0.2)
  {
    std::cout << "T(1, " << a << ") = ";
    std::cout << Maths::Special::t(1, a) << std::endl;
  }
  return 0;
};

Output:
T(1, 1) = 0.06674188217
T(1, 1.2) = 0.071539968
T(1, 1.4) = 0.07464519054
T(1, 1.6) = 0.07659020331
T(1, 1.8) = 0.0777717076
T(1, 2) = 0.07846818696
T(1, 2.2) = 0.07886656741
T(1, 2.4) = 0.07908757312
T(1, 2.6) = 0.07920641123
T(1, 2.8) = 0.07926830709
T(1, 3) = 0.07929951045
Parameters:
hthe first argument of the T function
athe second argument of the T function (upper limit of integration)
Returns:
the value of Owen's T function evaluated with the given arguments
References:
John Burkardt's library of statistical C++ routines, http://www.csit.fsu.edu/~burkardt/cpp_src/prob/prob.html
Authors:
Lucian Bentea (September 2005)
Source Code:

You do not own any licences for this module.
To view or download source code you must get a GPL licence or buy a commercial licence.

buy now     get GPL     add to cart

For advanced download and development options Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2009-01-05 22:49:52

Valid CSS!   Valid XHTML 1.0 Transitional