Hi,
it appears the value of c3 before the call mpf_sqrt() is negative,
and mpf_sqrt() does not allow negative inputs.
Best regards,
Paul Zimmermann
> From: "posihydr"
> Date: Sat, 19 Aug 2023 21:50:37 +0800
>
>
> [1:text/plain Hide]
>
> A description of the problem:
> The problem
"posihydr" writes:
The problem occurs when the formula in GMP and < Picture 1 is used
to calculate PI, calculate the constant C to the 3/2 power, output
"Floating point exception" after running the program, and use GDB
debugging to find that the program receives signal SIGFPE when