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

                 Summary: Feature: gsl_root_fsolver_set_with_values()
                   Group: GNU Scientific Library
               Submitter: mangrove84
               Submitted: Wed 18 Dec 2024 12:51:39 PM CET
                Category: None
                Severity: 3 - Normal
        Operating System:
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: v2.8


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 18 Dec 2024 12:51:39 PM CET By: Christian Krueger <mangrove84>
I offer a patch (against GSL v2.8) that is attached and implements

gsl_root_fsolver_set_with_values(gsl_root_fsolver *s, gsl_function *f, double
x_lower, double f_lower, double x_upper, double f_upper)

for all three root finders that work without derivative (bisection, brent,
falsepos).

The function values f_lower = f(x_lower) and f_upper = f(x_upper) are provided
to this function; this is in contrast to the existing gsl_root_fsolver_set()
function, which evaluates f(x_lower) and f(x_upper).

This extension can be useful when the function evaluation is expensive and is
similar to the *_with_values() function for minimizers.

The patch comes with test and adjustment to the documentation.






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Name: fsolver_set_with_values.patch  Size: 11KiB
<https://file.savannah.gnu.org/file/fsolver_set_with_values.patch?file_id=56704>

    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-3b9d8f2f3b65257ee40f9dc78baa5a1aa46a8a5e.tar.gz

    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to