Skip to main content
1-Visitor
November 3, 2010
Solved

Re: Help with linterp function please

  • November 3, 2010
  • 1 reply
  • 11091 views

Hi all,

I'm having a little difficulty with extracting a specific point using the linear interpolation function.

The error function i'm getting is "the elements in this vector must be in ascending order"

I have attached the file, would much appreciate if someone could please show me how to get rid of this error and how I can extract a specific point from my RF(x) function.

Many thanks.

Best answer by MikeArmstrong

I'm not sure if that's a bug with Mathcad or your not allowed duplicate values in the Linterp function.

Have a look at the attached worksheet. A little trick in there you now don't need to define RF1.

Mike

1 reply

1-Visitor
November 3, 2010

I think its because your P2 and P3 values are the same.

Mike

uclphd1-VisitorAuthor
1-Visitor
November 3, 2010

Thanks Mike.

Mathcad is a strange beast. Check my attached document, by rounding down P3 I get a solutuon. Why is that?

1-Visitor
November 3, 2010

I'm not sure if that's a bug with Mathcad or your not allowed duplicate values in the Linterp function.

Have a look at the attached worksheet. A little trick in there you now don't need to define RF1.

Mike