interpolate
Any one can help me to interpolate the value of x
Thank you.
D:24m
H:8m

Any one can help me to interpolate the value of x
Thank you.
D:24m
H:8m

Lex Dante wrote:
Yes D/H is a ratio and the condition is like this,
Now your "table" is more meaningful.
I guess you are looking for something like the attached.
You can use "if" and "otherwise" (in Mathcad 15 and below) statements for the out-of-range values and can manually interpolate the values between 1 and 4 (function x1) which is easy enough or you can let Mathcad do the interpolation for you (function x2).
In Prime you would use if, also if and else and it would look more cluttered. You may also use return statements to avoid the nesting of if's, etc -> see function x2b.
You may also let max and min do the "cutting off" of the values which are out of range as in function x3, but I guess thats a bit harder to read.

Implementation in Prime:


Regards
Werner
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.