Skip to main content
11-Garnet
March 24, 2023
Solved

Convert a regressive function to a matrix

  • March 24, 2023
  • 3 replies
  • 2276 views

I have a regressive function Y[k and i need to express it as a matrix. Ultimately, I need to smooth it and make it a continuous function using either linear interpolation or splines.

 

Note that the regressive function is expressed using subscripts, y[k.

 

I'm using Mathcad Prime

 

Best answer by LucMeekes

Like this:

LucMeekes_0-1679752483459.png

Success!
Luc

 

3 replies

25-Diamond I
March 24, 2023

Note that the regressive function is expressed using subscripts, y[k.

 


Then its not a function but rather a vector of values!?

Its not clear to me what you are looking for.

How about posting a example worksheet?

gatlas11-GarnetAuthor
11-Garnet
March 25, 2023

Werner,

 

I'm trying to convert a regressive function y[k to a smoothe function that can be readily differentiated.

 

Please see the attachment.

 

Thanks,

Glen

LucMeekes23-Emerald IVAnswer
23-Emerald IV
March 25, 2023

Like this:

LucMeekes_0-1679752483459.png

Success!
Luc

 

21-Topaz II
March 24, 2023

Hi perhaps answer can be found on these help locations:

Regression

Interpolation and Prediction Functions

Beyond this you may need to expand the question

Capture2.JPG

Capture.JPG

25-Diamond I
March 25, 2023

Because your recursively defined series follows a linear recursion, we can always find the direct general formula for computing the nth term as a function of n,
So there is no need for interpolation or approximation via a regression.

Werner_E_2-1679765588698.png

Don't let the imaginary unit confuse you, the returned function values are real 😉

gatlas11-GarnetAuthor
11-Garnet
March 25, 2023

Thanks!