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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Linear interpolation from Table

MHDINGBI
3-Visitor

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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
12-Amethyst
(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-Visitor
(To:Perez)

Great Thanks.

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

 

Thank you for your response.

Top Tags