cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Linear interpolation from Table

MHDINGBI
3-Newcomer

Linear interpolation from Table

Hi everyone,

I want to do a linear interpolation for k in MATHCAD from this table taken from EC2.

As you see, if the division c1/c2 is <= 0.5 the value must be 0.45 and if the division is greater than 3 k is equal to 0.8.

Tableau 6.1 EC2.png

How can i solve this. 

Nota: I'm new to MATHCAD.

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:MHDINGBI)

The easiest way IMHO without the need of any programming is to add values at both ends of the table with k-values equal to the end values and then just make use of the built-in "linterp" function to do the linear interpolation:

Werner_E_0-1713295396486.png

Prime 10 worksheet attached

 

View solution in original post

4 REPLIES 4
Perez
14-Alexandrite
(To:MHDINGBI)

Hello there,

Use the programming operator to create a function k(c_ratio) as shown below:

Perez_0-1713293826078.png

Perez_1-1713293836231.png

Perez_2-1713293878438.png

Perez_3-1713293892677.png

Perez_4-1713293909372.png

Perez_5-1713293919701.png

Perez_6-1713293934118.png

Perez_7-1713293943605.png

 

 

Perez_8-1713293958370.png

 

 

MHDINGBI
3-Newcomer
(To:Perez)

Great Thanks.

Werner_E
25-Diamond I
(To:MHDINGBI)

The easiest way IMHO without the need of any programming is to add values at both ends of the table with k-values equal to the end values and then just make use of the built-in "linterp" function to do the linear interpolation:

Werner_E_0-1713295396486.png

Prime 10 worksheet attached

 

MHDINGBI
3-Newcomer
(To:Werner_E)

Thank you for your response.

Announcements

Top Tags