2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Added simplest possible test example.

This commit is contained in:
pabristow
2018-10-04 17:14:15 +01:00
parent dadce7ae6f
commit cd155591dd

View File

@@ -0,0 +1,20 @@
// Copyright Paul A. Bristow 2018
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/special_functions/lambert_w.hpp> // For lambert_w0 and wm1 functions.
//#include <iostream>
//#include <iomanip>
int main()
{
double z = 2.0;
double w = boost::math::lambert_w0(z);
std::cout.setf(std::ios_base::showpoint); // Include any trailing zeros.
std::cout.precision(std::numeric_limits<double>::max_digits10); // Show all possibly significant digits.
std::cout << " lambert_w0(" << z << ") = " << w << std::endl;
return 0;
} // int main()