4
votes
Forcing NonLinearModelFit to be positive
nlmf = NonlinearModelFit[mydata, {c x + a x^2, c >= 0}, {a, c}, x]
This constraint $c \ge 0$ comes from analyzing the derivative of the model: $df/dx = c + 2 a ...
- 9,243
2
votes
1
vote
Plotting natural log equation in 3D plane
Perhaps, you meant something like this?
One can grab and rotate the image to the desired viewpoint.
From what you said, I guess that you wanted the $y$ axis to be vertical. I selected and assigned a ...
- 600
1
vote
How to speedup calling the interpolation function?
Try purefunctionas Interpolation object
...
- 43.1k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
fitting × 1654probability-or-statistics × 232
plotting × 171
nonlinear × 154
mathematical-optimization × 117
data × 116
differential-equations × 103
distributions × 98
interpolation × 60
list-manipulation × 53
warning-messages × 47
modeling × 45
equation-solving × 40
functions × 40
numerical-integration × 40
calculus-and-analysis × 32
parametric-functions × 31
performance-tuning × 30
numerics × 29
physics × 29
polynomials × 23
machine-learning × 22
image-processing × 20
function-construction × 19
complex × 19