forum.alglib.net http://forum.alglib.net/ |
|
Two Polynomial Constraints At One End Node http://forum.alglib.net/viewtopic.php?f=2&t=4759 |
Page 1 of 1 |
Author: | Pb2Au [ Thu Sep 04, 2025 5:04 pm ] |
Post subject: | Two Polynomial Constraints At One End Node |
Needing to apply two constraints to one endpoint of a polynomial fit. #1: Specified Value (Option 0). #2: Specified 1st Derivative (Option 1). The polynomialfitwc() works with either constraint; however, the specified 1st derivative option is forcing a changed endpoint value. Possibly could duplicate the endpoint in the data arrays and apply the 2nd constraint to the duplicated point? But that feels very wrong. Please advise. Thanks! |
Author: | Sergey.Bochkanov [ Mon Sep 08, 2025 9:05 pm ] |
Post subject: | Re: Two Polynomial Constraints At One End Node |
Hi! It is ok to supply duplicate xc[] to polynomialfitwc() as long as they have different dc[]. Yes, it is wrong to duplicate data point, but with distinct dc[] you actually have two distinct points, even if xc[] are the same. The first one constrains function value, the second one constrains its derivative. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |