forum.alglib.net

ALGLIB forum
It is currently Fri Sep 12, 2025 3:19 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Two Polynomial Constraints At One End Node
PostPosted: Thu Sep 04, 2025 5:04 pm 
Offline

Joined: Thu Sep 04, 2025 4:30 pm
Posts: 1
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!


Top
 Profile  
 
 Post subject: Re: Two Polynomial Constraints At One End Node
PostPosted: Mon Sep 08, 2025 9:05 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 929
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 86 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group