Re: GMP Error Reporting

2023-08-21 Thread Paul Zimmermann
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

Re: GMP Error Reporting

2023-08-19 Thread Torbjörn Granlund
"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