![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Functions | |
| double | computePhiM (std::size_t m) |
| Computes the solution to the equation \( x^{m+1} = x + 1 \) using Newton's method. | |
|
inline |
Computes the solution to the equation \( x^{m+1} = x + 1 \) using Newton's method.
| m | The exponent parameter in the equation. |
This function uses Newton's method to iteratively solve the equation \(x^{m+1} = x + 1 \). The iterative formula is:
\[ \phi_{n+1} = \phi_n - \frac{\phi_n (\phi_n^m - 1) - 1}{(m+1) \phi_n^m - 1} \]
The iteration stops when the change ( \( \Delta\phi \)) is smaller than twice the machine epsilon for double.