URL:
  <https://savannah.gnu.org/bugs/?67359>

                 Summary: Feature: Add special case for gsl_sf_hyperg_2F0
                   Group: GNU Scientific Library
               Submitter: fermelelundi
               Submitted: Sun 27 Jul 2025 06:22:23 AM GMT
                Category: None
                Severity: 3 - Normal
        Operating System:
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 2.8


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 27 Jul 2025 06:22:23 AM GMT By: Fermé le Lundi <fermelelundi>
In specfunc/hyperg_2F0.c there is a test for x == 0, which leads to the value
1. However, also a == 0 or b == 0 lead to 1, so that the test becomes:

     if(x == 0.0 || a == 0.0 || b == 0.0) {

Since this case is more specific than merely x < 0.0, those two code blocks
can then also be swapped.

Test cases for specfunc/test_hyperg.c:
  TEST_SF(s, gsl_sf_hyperg_2F0_e, (0.0,  1.0, -0.02, &r), 1, TEST_TOL0,
GSL_SUCCESS);
  TEST_SF(s, gsl_sf_hyperg_2F0_e, (10.0, 0.0, -0.2,  &r), 1, TEST_TOL0,
GSL_SUCCESS);
  TEST_SF(s, gsl_sf_hyperg_2F0_e, (0.0,  0.0,  0.0,  &r), 1, TEST_TOL0,
GSL_SUCCESS);








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67359>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to