Phk is the output,and the A is input.now,the a s u are parameters.Read more
Phk is the output,and the A is input.now,the a s u are parameters.Read more
I do fit a function from a dataset which I need to display in a LogLogPlot in order to make it display as linear. I do also need to overlay an LogLogErrorBarPlot so they show together in one graphic – which fails. I feel like something is wrong about the LogLogPlot of my fitted modelRead more
I have a data. The LinearModelFit works well with it. But I really interested to fit it to y == a 34^b x^d + e 34^f x So, my code: fit2 = NonlinearModelFit[data, {a 34^b x^d + e 34^f x}, {a, b, d, e, f}, {x}] But it gives me an error: NonlinearModelFit::nrjnum: The JacobianRead more
I’d like to fit a Nonlinear curve to a dataset, wich has an uncertainties vector associated. The problem is that I’d also like to add Weights to the fit. Lets say that my dataset is: data={{-2., 1.00884}, {-1.5, 2.75486}, {-1., 4.00577}, {-0.5, 4.75401}, {0., 5.00771}, {0.5, 4.7533}, {1., 4.00055}, {1.5, 2.75478}, {2., 1.0017}} and myRead more
I have to fit many large datasets into a linear equation. I am using the following code, employing NonlinearModelFit to avoid the Gaussian error propagation since the parameter of interest is c (if I were to use the linear fit i would have to multiply the slope with n and propagate the error since nRead more
I’m trying to fit a set of data, it looks like this: The blue point line is the data and the red curve is the best fit I want, the model function used to fit is named lineShape: t0ToFemtoSecond:=24.18884326505*^-3 FemtoSecondTot0:=1/t0ToFemtoSecond HartreeToeV:=27.2113845 eVToHartree:=1/HartreeToeV Gamma21=2*^-4*1.5`25eVToHartree; Gamma31=2*^-4*1.5`25eVToHartree; gamma2=Gamma21/2; gamma3=Gamma31/2; omega21=1.56020`25*eVToHartree; omega31=1.58940`25*eVToHartree; A21[tau_,a21_,a31_,Phi21_,Phi31_]:=a21 Exp[-I omega21 tau+I Phi21-gamma2 tau]+a31 Exp[-IRead more