incbeta
                                
                                 incbeta copied to clipboard
                                
                                    incbeta copied to clipboard
                            
                            
                            
                        1.0 / 0.0 result cannot compile
Why make such a choice to use a return 1.0 / 0.0;
What compiler are you using and what message does it output?
@codeplea It get information:
divide or mod by zero
Please copy/paste your command-line compiler invocation and what it says.
To fix your issue, you can merely change the line to return NAN;.
I propose INFINITY instead. That is also a C99 macro. It works with Microsoft Visual Studio C++ 2022 in a C project
Why prefer INFINITY over NAN?
Because 1/0 seems to say +infinity. I think it would be reasonable to say that 0/0 is not-a-number.