What is the matrix function to find the extrapolated value from a given 2-dimension table

What is the matrix function to find the extrapolated value from a given 2-dimension table - Poruke

#1 Objavljeno: 21. 4. 2021. 16:46:53
Tuan Nguyen

Tuan Nguyen

0 svidjanja u 16 postova.

Grupa: User

Is there such matrix function to help me get the coefficient Cf based on ratio s/h and B/s from given table in matrix form?

#2 Objavljeno: 21. 4. 2021. 17:38:34
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Is there such matrix function to help me get the coefficient Cf based on ratio s/h and B/s from given table in matrix form?


You can either use linterp() or InterpBilinear().
They can also find an interpolated value between title numbers.
Please look at the Reference Book for further information.

Regards
#3 Objavljeno: 21. 4. 2021. 18:05:55
Tuan Nguyen

Tuan Nguyen

0 svidjanja u 16 postova.

Grupa: User

Wrote

Wrote

Is there such matrix function to help me get the coefficient Cf based on ratio s/h and B/s from given table in matrix form?


You can either use linterp() or InterpBilinear().
They can also find an interpolated value between title numbers.
Please look at the Reference Book for further information.

Regards



Thank you. Found it here. https://en.smath.com/forum/yaf_postst17672_Interpolate-Matrix.aspx

Learn new things every day.
#4 Objavljeno: 21. 4. 2021. 18:24:29
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Is there such matrix function to help me get
the coefficient Cf based on ratio s/h and B/s
from given table in matrix form?


Spline(M,x,y) is universal.
Construct 1/1 from the given example, forget decoration <, >
Just for interpolation, you don't need the rotation system.
Cheers ... Jean

Spline Matrix Tutorial RECTANGULAR Surface Plot.sm (22,98 KiB) preuzeto 1275 put(ova).

1 korisnika je svidelo ovu objavu
Tuan Nguyen 21. 4. 2021. 19:04:00
#5 Objavljeno: 21. 4. 2021. 18:33:04
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

... nice example done for Smath Community visitor.
Construct rough data table, spline at will, plot is most delightful.
How do you manage ... Jean

SplineRectangularMatrix Isentropic Surface.sm (457,73 KiB) preuzeto 1305 put(ova).
1 korisnika je svidelo ovu objavu
Tuan Nguyen 21. 4. 2021. 19:04:00
#6 Objavljeno: 21. 4. 2021. 19:13:21
Tuan Nguyen

Tuan Nguyen

0 svidjanja u 16 postova.

Grupa: User

Wrote

Wrote

Is there such matrix function to help me get
the coefficient Cf based on ratio s/h and B/s
from given table in matrix form?


Spline(M,x,y) is universal.
Construct 1/1 from the given example, forget decoration <, >
Just for interpolation, you don't need the rotation system.
Cheers ... Jean

Spline Matrix Tutorial RECTANGULAR Surface Plot.sm (22,98 KiB) preuzeto 1275 put(ova).



Beautiful. I love the way you present all math problems in such a lovely form.

Even though it is a very rare case, when x and/or y values exceed the range in my posted table the function will return the value more or less than it should be because I think the table cap the values. I wanted to make changes to the Spline function to reflect this but my limited knowledge in programing and Smath prevents me from doing that. Any suggestions?
#7 Objavljeno: 22. 4. 2021. 13:50:04
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

See you soon tomorrow ... Jean.


... here is, play with rotation.

Spline Matrix Tutorial RECTANGULAR Surface Plot Example.sm (23,4 KiB) preuzeto 1326 put(ova).
1 korisnika je svidelo ovu objavu
Tuan Nguyen 22. 4. 2021. 14:42:00
#8 Objavljeno: 22. 4. 2021. 14:47:20
Tuan Nguyen

Tuan Nguyen

0 svidjanja u 16 postova.

Grupa: User

Wrote

Wrote

See you soon tomorrow ... Jean.


... here is, play with rotation.

Spline Matrix Tutorial RECTANGULAR Surface Plot Example.sm (23,4 KiB) preuzeto 1326 put(ova).



Awesome. When x=70, y=0.5, I need it to be 1.75 per code because x>45 but the function gives me 1.83. How would I modify the code for Spline to achieve this.

#9 Objavljeno: 22. 4. 2021. 15:37:25
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Obviously the function uses linear extrapolation beyond the limits of the data array.

Without touching the function you can enforce constant extrapolation by repeating the first or last rows or columns of data.

surface.png
surface.sm (18,8 KiB) preuzeto 1210 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
Tuan Nguyen 22. 4. 2021. 18:37:00
#10 Objavljeno: 22. 4. 2021. 16:46:35
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Awesome. When x=70, y=0.5, I need it to be 1.75 per code because x


... as simple as that, preserving last two cols linearity.

Augment.PNG
1 korisnika je svidelo ovu objavu
Tuan Nguyen 22. 4. 2021. 18:37:00
#11 Objavljeno: 22. 4. 2021. 18:41:11
Tuan Nguyen

Tuan Nguyen

0 svidjanja u 16 postova.

Grupa: User

Me feeling dumb. Thanks, Jean and MKraska
  • Novi postovi
  • Nema novih postova