Skip to main content
1-Visitor
Nov 13, 2014 11:23 AM UTC
Question

could you give me advice?

dfgdawrg.PNG

mu=0.2, 0.25, ..1

tw(mu)>>> this mean is that tw(0.2)=19.54, tw(0.25)=15.86.....

and "c" is also including mu.

it means c(mu). c(0.2)=689.23, c(0.25)=662.54....

I want to express like upper.

Is it possible?

4 replies

19-Tanzanite
Nov 13, 2014 12:02 PM UTC

Use a spline to convert the table columns to a function. If columns 1 and 2 are vectors (not range variables!),

coeffs:=cspline(col1,col2)

tw(mu):=cspline(coeffs,col1,col2,mu)

Translate
jlee-21-VisitorAuthor
1-Visitor
Nov 13, 2014 12:24 PM UTC

thank you~ I will try to do it

Translate
23-Emerald I
Nov 13, 2014 1:22 PM UTC

Richard has shown you spline fitting to create functions that fit datapoints represented by vectors.

There are many others.

Splines will pass thru the data points exactly, but they may fluctuate wildly between the points. Other operators assume a function type and do least square fitting to find the parameter values for closest fit. Attached is a sheet demonstrating a fourth order polynomial fit for your twist data. Note that it is not exact!

For many applications you may want to do straight line interpolation between points; research "linterp" for that application.

Translate
jlee-21-VisitorAuthor
1-Visitor
Nov 13, 2014 2:15 PM UTC

thank you^^

Translate