Linked Questions

521
votes
19answers
129k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
27
votes
3answers
2k views

Arbitrary precision spline interpolation

The current implementation of Interpolation does not allow arbitrary precision spline interpolation. Yu-Sung Chang says here that "it is not hard to implement it ...
14
votes
2answers
993 views

Fit a function to data so that fit is always equal or less than the data

I have a set of measurement data and I try to fit there a function (a Exp[b x] + c Exp[d x] - o). I have two problems: The fit function does not converge nor after ...
9
votes
3answers
2k views

How to make a smooth revolution surface plot

I'm trying to plot a 3d revolution plot from a set of 2d points. These data points form a 2d curve, then we rotate that curve around y axis and get a 3d surface. @J. M. has a well explained and very ...
14
votes
3answers
1k views

2D smoothing spline interpolation

Does Mathematica have 2D smoothing spline interpolation built in? I requires an interpolation method with smooth first derivatives and cubic bivariate splines fulfill this nicely. In python I would ...
8
votes
3answers
530 views

Derivative of contour in ContourPlot

Sorry to bring this question up again, since there are many similar questions on the site. I use to think this is a easy job to do, because for the worst case I can follow the answers on this site. ...
14
votes
1answer
2k views

Fitting a spline to data with FindFit?

I am trying to find a function that fits my almost linear data. A high order polynomial model has too much residual. So I was hoping to use Mathematica to fit splines to the curve. This is what I ...
0
votes
3answers
1k views

Smooth region plot from list of points

I have function that is costly to evaluate, fun[x,y], that takes two real arguments and returns True or False. I am trying to visualize in the x,y-plane the region ...
3
votes
2answers
1k views

Parametric differentiable interpolation of a 2D data set

I have a set of data ...
2
votes
1answer
217 views

Derivative of an interpolating function

I have an interpolating function (which comes from an integral that cannot be done analytically), it looks nice and smooth: However, since what I need is the derivative of this function, it is not ...
1
vote
0answers
80 views

Least squares fitting: how do you handle a gapped dataset?

I am attempting to use the least squares method to fit a polynomial to a gapped dataset. Regularization was performed assuming variances defined by the function: $$v_{\epsilon_n} = 0.01 + 0.001(t_n +...