From cd155591ddb2f6eafc76b33d515bc28c19951b82 Mon Sep 17 00:00:00 2001 From: pabristow Date: Thu, 4 Oct 2018 17:14:15 +0100 Subject: [PATCH] Added simplest possible test example. --- example/lambert_w_basic_example.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 example/lambert_w_basic_example.cpp diff --git a/example/lambert_w_basic_example.cpp b/example/lambert_w_basic_example.cpp new file mode 100644 index 000000000..6b9b1c1a5 --- /dev/null +++ b/example/lambert_w_basic_example.cpp @@ -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 // For lambert_w0 and wm1 functions. + +//#include +//#include + +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::max_digits10); // Show all possibly significant digits. + std::cout << " lambert_w0(" << z << ") = " << w << std::endl; + return 0; +} // int main()