American Citizen on Fri, 08 Nov 2024 17:49:27 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
question on trying to fit an exponential decay curve to data
|
- To: pari-users <pari-users@pari.math.u-bordeaux.fr>
- Subject: question on trying to fit an exponential decay curve to data
- From: American Citizen <website.reader3@gmail.com>
- Date: Fri, 8 Nov 2024 08:49:21 -0800
- Delivery-date: Fri, 08 Nov 2024 17:49:28 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731084563; x=1731689363; darn=pari.math.u-bordeaux.fr; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=S6TwpBgda0YZkzG64KDiXembMafcGvKnKLr7R4HId2g=; b=kO+OMiw3D9sJT5ACRljKCpgrdBaunbwxDTosoto1c0k48B+8mv1XjTdo7TXDxUTVsr qV7LlcnmCAzELjelKjGVdGw2KCY0HqfA22hwE3777eBQBwgeJEyuYG6xU0ltFCm+Etiq sGEOMS5wff9WdbkB10lAt5Ik8V3IMSiHIm3RaJSUDydMq6gLBdF4G9HNCsYGmVIrwBoP tfMRVBS0PjYuiJOAA/Vqd+/db5GcGAzu/3Ph02ZGFdLryHQzBfv32WcYxWODl2UiV7hA Flj9LQpnA4cW8yCnhVXrXTCOhJ2nWQ0LnE+k3TAClvTNLi3Audwc+13OPHuwpPCo8nDn WGiw==
- User-agent: Mozilla Thunderbird
Hello:
While working with the L-series code that I have, in trying to find the
regulator of an elliptic curve, I've hit a problem with curve fitting.
I have a set of 15,026 points which shows a nice decay curve to
(purportedly) the final value = regulator, but trying to fit the
equation (1) eludes me.
(1) y = a*exp(x*k1) + b*exp(x*k2) + c
My attempts to optimize (1) to the data failed in both a Python3
module, and gnuplot curve fitting, so I am stuck at the moment. Python3
says maxfev > 800, so optimization attempts failed and gnuplot says bad
data at data point 710, which makes absolutely no sense at all.
How would you use GP Pari to do a least squares fit to the equation (1)
?? I need to know [a, b, c, k1, k2] of course.
Randall