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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

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.

How can i solve this.

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(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:

Prime 10 worksheet attached

4 REPLIES 4
12-Amethyst
(To:MHDINGBI)

Hello there,

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

3-Visitor
(To:Perez)

Great Thanks.

24-Ruby V
(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:

Prime 10 worksheet attached

3-Visitor
(To:Werner_E)