Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
I have the following boundary and an angle with the origin
Pr and Mr are 1 x n vectors. I need to find, by interpolation, what is the value of Pr and Mr that correspond to the angle. what is the easiest way to do that on Mathcad?
I am using Mathcad prime 9.0.0.0. Attached the file
Solved! Go to Solution.
Here is the solution given the assumptions made in my previous reply.
Prime 9 sheet attached
Can you post a worksheet?
And say which version of Prime you are using (especially important if you are not using the latest version)
One way I can think of is to calculate a vector Phi with all angles corresponding to all points (M;P).
Then you can create two interpolating functions (may linear interpolation with "linterp") M(phi) and P(phi) using the vectors Phi and M , and Phi and P respective. Now you would have functions which return M and P values for any given angle phi.
I edited the post to include both: file and version. Thanks!
OK, when you talk about the angle you have to be aware that this angle is dependent on the units the quantities are displayed in.
Should a point like #10 M=1423.44 kNm, P=14074.94 kN correspond to the angle 84.225 ° ??
It won't look that way in the plot because different scales are used on both axis:
Here is the solution given the assumptions made in my previous reply.
Prime 9 sheet attached
That is right, the results would be dependent on the unit
as you assumed below, using kN and kN.m is ok, since I just need to compare the values of a point (Mr, Pr) passing through that angle with the values of Mr, Pr at the boundary.