Curve fitting function

Curve fitting function - Is there a curve fitting function in Smath? - Poruke

#1 Objavljeno: 13. 1. 2022. 07:38:26
rex

rex

1 svidjanja u 10 postova.

Grupa: User

Hello,
Is there any curve fitting function in Smath?
I mean using the defined points to find the function of these points!
Thanks a lot!
#2 Objavljeno: 14. 1. 2022. 00:00:26
rex

rex

1 svidjanja u 10 postova.

Grupa: User

Wrote

... for best examination: close Smath ... open a virgin session.
This way, as you will download, both will be resident in same session.
Open include to inspect the content, close back.
Open Test UpDated ... F9 to run
Test Updated contents 5 stand alone fit examples.
If it does not work wrt your Smath version ... bug.
Try it ... report ... Jean

Genfit Algo Include.sm (36,12 KiB) preuzeto 1394 put(ova).
Genfit Algo Include Test UpDated.sm (145,48 KiB) preuzeto 1377 put(ova).



Hi Jean,
Thanks for your reply!
I tired the .sm file, but it doesn't work well. Meanwhile, the Genfit Algo Include.sm needs rename as GenfitAlgoInclude.sm.

I put the two .sm files in the same location, tSmath_error.pnghen I opened the Test Updated.sm, and pressed F9 to run....the error is shown in the picture.
The information of my Smath is Version 0.99
Looking forward to your feedback, thanks!

[attach]42964
#3 Objavljeno: 14. 1. 2022. 00:53:11
CBG

CBG

78 svidjanja u 312 postova.

Grupa: User

Hello

Maybe you can deal with Least Squares Fit

Define_a_Variable_Ajust_by_Last_Square.sm (58,17 KiB) preuzeto 1485 put(ova).

Ajust_by_Last_Square_Selection.sm (54,44 KiB) preuzeto 1373 put(ova).

Best Regards

Carlos
#4 Objavljeno: 14. 1. 2022. 02:04:40
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

I mean using the defined points to find the function of these points!


Answer is YES
I don't know an embedded function for this.
But you can write your own function.
Lagrange Interpolation Method can be used.
maple() command is not necessary but it simplifies the function.
Giving more points, curve gets more complex.
Here is some examples for your request.

Regards

lagrange.sm (26,56 KiB) preuzeto 1350 put(ova).

Click to enlarge

Click to enlarge

Click to enlarge

Click to enlarge
2 korisnika je svidelo ovu objavu
sergio 14. 1. 2022. 06:15:00, Alvaro 14. 1. 2022. 16:19:00
#5 Objavljeno: 14. 1. 2022. 02:55:13
rex

rex

1 svidjanja u 10 postova.

Grupa: User

Wrote

Hello

Maybe you can deal with Least Squares Fit

Define_a_Variable_Ajust_by_Last_Square.sm (58,17 KiB) preuzeto 1485 put(ova).

Ajust_by_Last_Square_Selection.sm (54,44 KiB) preuzeto 1373 put(ova).

Best Regards

Carlos



Hi Carlos,

This works really fine, thanks for sharing this!
#6 Objavljeno: 14. 1. 2022. 02:57:10
rex

rex

1 svidjanja u 10 postova.

Grupa: User

Wrote

Answer is YES
I don't know an embedded function for this.
But you can write your own function.
Lagrange Interpolation Method can be used.
maple() command is not necessary but it simplifies the function.
Giving more points, curve gets more complex.
Here is some examples for your request.

Regards

lagrange.sm (26,56 KiB) preuzeto 1350 put(ova).

Click to enlarge

Click to enlarge

Click to enlarge

Click to enlarge



Hi, thanks for sharing this, I will try to learn your file!
#7 Objavljeno: 14. 1. 2022. 05:36:56
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Wrote

Hello,
Is there any curve fitting function in Smath?
I mean using the defined points to find the function of these points!
Thanks a lot!



Maxima plugin has the Fit() function, see this post

In the interactive handbook, you find it in the Function Index page.


2022-01-14 09_32_53-Reference book.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
sergio 14. 1. 2022. 06:15:00
#8 Objavljeno: 14. 1. 2022. 06:56:58
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi. Some fitting curves functions in the attached.

fit.pdf (527,19 KiB) preuzeto 1021 put(ova).
fit.sm (377,47 KiB) preuzeto 1405 put(ova).

Best regards.
Alvaro.
3 korisnika je svidelo ovu objavu
NDTM Amarasekera 14. 1. 2022. 11:23:00, sergio 14. 1. 2022. 07:23:00, Fridel Selitsky 14. 1. 2022. 07:26:00
#9 Objavljeno: 14. 1. 2022. 10:56:33
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Hi, thanks for sharing this, I will try to learn your file!


You are welcome.
My function is direct method, may not be suitable for large data sets.
Razonar's and mkraska's samples are good to investigate too for that purpose.

Regards
#10 Objavljeno: 14. 1. 2022. 16:25:17
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi ovlerlord.

Wrote

Answer is YES



Yes, it is YES.

Wrote


Lagrange Interpolation Method can be used.
maple() command is not necessary but it simplifies the function.



This version of your application doesn't need maple for get the simplified lagrange polynom.

lagrange.sm (22,88 KiB) preuzeto 1356 put(ova).

Best regards.
Alvaro.
2 korisnika je svidelo ovu objavu
overlord 14. 1. 2022. 17:46:00, usamakhan 31. 10. 2026. 08:27:00
#11 Objavljeno: 17. 1. 2022. 00:15:21
rex

rex

1 svidjanja u 10 postova.

Grupa: User

Wrote

Wrote

Hi Jean,
Thanks for your reply!


Please, attach your raw data set., i.e: not freaked by else.
Two more examples attached.

Genfit Frechet DIFFICULT.sm (128,06 KiB) preuzeto 1340 put(ova).
Genfit Kirby_2 [Reduced] Copy.sm (81,39 KiB) preuzeto 1170 put(ova).

A fitting session is mostly governed by the model and techniques.
In short: sky is the limit. Some data set can only be fitted by hand.
Plenty are willing in Smath Community.
Take care ... Jean



Fajl nije pronađen.Fajl nije pronađen.

Hi Jean,

see the stress-strain data, I would say I am really happy about this forum. I got a lot of fit function information from here! Thanks all!
#12 Objavljeno: 17. 1. 2022. 04:55:01
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote



Fajl nije pronađen.Fajl nije pronađen.



Hi. Three fitting models for your data.

fit_stress_strain.sm (523,68 KiB) preuzeto 1394 put(ova).
fit_stress_strain.pdf (635,91 KiB) preuzeto 988 put(ova).

Best regards.
Alvaro.
1 korisnika je svidelo ovu objavu
Fridel Selitsky 17. 1. 2022. 05:00:00
#13 Objavljeno: 17. 1. 2022. 05:58:00
rex

rex

1 svidjanja u 10 postova.

Grupa: User

Wrote

Wrote



Fajl nije pronađen.Fajl nije pronađen.



Hi. Three fitting models for your data.

fit_stress_strain.sm (523,68 KiB) preuzeto 1394 put(ova).
fit_stress_strain.pdf (635,91 KiB) preuzeto 988 put(ova).

Best regards.
Alvaro.



Wow, it's amazing!
Thanks Alvaro!
#14 Objavljeno: 26. 1. 2022. 18:21:34
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Hi Jean,
Thanks for your reply!
I tried the .sm file, but it doesn't work well.


You have detected a bug wrt your SS version, maybe earlier ones ?
Silent Smath Community ?
If you open the governing Conjugate Gradient ... it could be
the symbolic module has not been saved Symbolic, a common bug reported.
By same token, I will delete all previous attachments.
Please, don't hesitate ... Take care ... Jean.
I guess your original raw data is the one from Alvaro ?
  • Novi postovi
  • Nema novih postova