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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Translate the entire conversation x

4D interpolation

ptc-1385443
3-Newcomer

4D interpolation

I have a set of bounding temperature data Ti, at coordinates (xi,yi,zi).  I would like to linearly interpolate the temperature at interior points within the bounding points.  The bounding points could be like a cube, or other shape, or a plane or a line element.

 

 Is there a mathcad prime program that can do this?

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:ptc-1385443)

I would call it a 3D interpolation as its a function in three arguments.

 

Find attached a Prime 11 sheet with a function for 2D and also for 3D linear interpolation (could easily changed to do cubic spline interpolations if desired).

Also included a simple example for the usage of the 2D interpolation function and also a more elaborate example for using the 3D interpolation.

The latter example comes from my answer to a question in this forum. I couldn't find the thread now and have no idea what it was about exactly.

The problem with the 3D interpolation is that Prime does not allow for multidimensional arrays. Prime only provides one-dimensional (vectors) and two-dimensional (matrices) arrays.

So the workaround was to provide the data in form of a nested structure - as a (one-dimensional) vector consisting of two-dimensional matrices.

Werner_E_0-1756233128967.png

Werner_E_1-1756233186609.png

 

 

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:ptc-1385443)

I would call it a 3D interpolation as its a function in three arguments.

 

Find attached a Prime 11 sheet with a function for 2D and also for 3D linear interpolation (could easily changed to do cubic spline interpolations if desired).

Also included a simple example for the usage of the 2D interpolation function and also a more elaborate example for using the 3D interpolation.

The latter example comes from my answer to a question in this forum. I couldn't find the thread now and have no idea what it was about exactly.

The problem with the 3D interpolation is that Prime does not allow for multidimensional arrays. Prime only provides one-dimensional (vectors) and two-dimensional (matrices) arrays.

So the workaround was to provide the data in form of a nested structure - as a (one-dimensional) vector consisting of two-dimensional matrices.

Werner_E_0-1756233128967.png

Werner_E_1-1756233186609.png

 

 

thank you, this helps.

Paul
Announcements


Top Tags