T
Evaluates the Owen's T function.
Controller: CodeCogs
Contents
Interface
C++
T
doublet( | double | h | |
double | a | ) |
Example 1
#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
References
- John Burkardt's library of statistical C++ routines, http://www.csit.fsu.edu/~burkardt/cpp_src/prob/prob.html
Parameters
h the first argument of the T function a the second argument of the T function (upper limit of integration)
Returns
- the value of Owen's T function evaluated with the given arguments
Authors
- Lucian Bentea (September 2005)
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.