std::hermite is based on the hermite polynomial function given by:
After solving the Hermite’s Polynomial, the results come out to be like the following table:
|Value of n||Hermite(n,x)|
Input: n = 2 x = 7
Formula for n = 2,
4x7x7 – 2 = 196 – 2 = 194
Input: n = 4 x = 12
Formula for n = 4,
16x12x12x12x12 – 48x12x12 + 12 = 324876
std::hermite( unsigned int n, data_type x )
Parameters: The function accepts two mandatory parameters which are described below:
- n : Degree of Polynomial
- x : Value of x to be put in the function. The data_tpye can be float, double or long double.
Return value: This function returns the value which is the answer to the hermite’s polynomial.
Note: The std::hermite() function runs on GCC 7.1 (C++ 17) version.
Below programs illustrate the std::hermite() function:
- If the argument is NaN, NaN is returned and domain error is not reported.
- If n is greater or equal to 128, the behavior is implementation-defined.
- Vector of Vectors in C++ STL with Examples
- Introduction to the C99 Programming Language : Part I
- Jagged Array or Array of Arrays in C with Examples
- Introduction to the C99 Programming Language : Part III
- Introduction to the C99 Programming Language : Part II
- Features of C Programming Language
- Array of Vectors in C++ STL
- Difference between Virtual function and Pure virtual function in C++
- cin get() in C++ with Examples
- Difference between Increment and Decrement Operators
- Map of Vectors in C++ STL with Examples
- Problem in comparing Floating point numbers and how to compare them correctly?
- exit(0) vs exit(1) in C/C++ with Examples
- Predefined Macros in C with Examples
- How to create GUI in C programming using GTK Toolkit
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.