Why I have errors? - See please the attached file - 消息
WroteSee please the end of the attached file.
Triplet roots ... FindRoot not doctored.
6-1-Mister-Class (1).sm (66.16 KiB)已下载 1316 次。
The first error can be handled by wrapping the function in eval(). For the second one this does not help.
I take the opportunity to advertise the Maxima Fit() function.
It is explained in https://doi.org/10.25933/opus4-2949 chapter 6 (English) and in https://doi.org/10.25933/opus4-2948, chapter 9 (German).
6-1-Mister-Class Kr.sm (56.11 KiB)已下载 1353 次。
![2023-10-14 16_31_26-SMath Solver - [6-1-Mister-Class (2).sm_].png](/zh-Hans-CN/files/Download/BgD2UF/2023-10-14-16_31_26-SMath-Solver---[6-1-Mister-Class-(2).sm_].png)
I take the opportunity to advertise the Maxima Fit() function.
It is explained in https://doi.org/10.25933/opus4-2949 chapter 6 (English) and in https://doi.org/10.25933/opus4-2948, chapter 9 (German).
6-1-Mister-Class Kr.sm (56.11 KiB)已下载 1353 次。
![2023-10-14 16_31_26-SMath Solver - [6-1-Mister-Class (2).sm_].png](/zh-Hans-CN/files/Download/BgD2UF/2023-10-14-16_31_26-SMath-Solver---[6-1-Mister-Class-(2).sm_].png)
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Valery Ochkov 2023/10/14 21:45:00
And the Lord God created the function eval and the lord said this is good!
And the Lord God created the Maxima and the lord said this is sehr kompliziert!
And the Lord God created the Maxima and the lord said this is sehr kompliziert!
Hm, where exactly do you see the most severe сложности in the use of the Maxima plugin? Perhaps everything that needs a handbook is too complicated nowadays 
I really like the curve fitting interface with the Fit() function, which might even be comprehensible from the подсказка in the dynamic help.
I really like the curve fitting interface with the Fit() function, which might even be comprehensible from the подсказка in the dynamic help.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
Hi. Polynomial fitting, returning the same values that Excel returns. From this post.
fit_CKO.sm (51.22 KiB)已下载 1405 次。
Best regards.
Alvaro.
fit_CKO.sm (51.22 KiB)已下载 1405 次。
Best regards.
Alvaro.
WroteSorry!
But the question was Why not How
Hi Valery. Martin showed why. But for the quadratic case Máxima's Fit function does not return the same result as Excel, which could be said to have been taken as standard, since they are also the same as those usually obtained with the 'all powerful' (talking about of gods) a\b of Matlab. I made the post to show how those mythical values can also be obtained in SMath.
Because SMath' solver isn't very powerful you can get those same values with your method using another, like the following one

About the error vectorizing, you can see why taking a look of this

Best regards.
Alvaro.
1位用户喜欢此帖子
Valery Ochkov 2023/10/15 20:03:00
WroteWroteSorry!
But the question was Why not How
Hi Valery. Martin showed why. But for the quadratic case Máxima's Fit function does not return the same result as Excel, which could be said to have been taken as standard, since they are also the same as those usually obtained with the 'all powerful' (talking about of gods) a\b of Matlab. I made the post to show how those mythical values can also be obtained in SMath.
Because SMath' solver isn't very powerful you can get those same values with your method using another, like the following one
About the error vectorizing, you can see why taking a look of this
Best regards.
Alvaro.
Send please sm-file!
WroteSend please sm-file!
6-1-Mister-Class with polyfit.sm (39.08 KiB)已下载 1372 次。
6-1-Mister-Class with polyfit.pdf (226.49 KiB)已下载 808 次。
Best regards.
Alvaro.
1位用户喜欢此帖子
Valery Ochkov 2023/10/15 21:20:00
There is not much sense in fitting functions with many degrees of freedom to data containing not much information. Any function which goes through the centroid of the data points will come up with a similar MSE.
Is the second result really the best just because of it's lowest MSE?
![2023-10-15 18_24_01-SMath Solver - [6-1-Mister-Class Kr.sm].png](/zh-Hans-CN/files/Download/nAW8yY/2023-10-15-18_24_01-SMath-Solver---[6-1-Mister-Class-Kr.sm].png)
Is the second result really the best just because of it's lowest MSE?
![2023-10-15 18_24_01-SMath Solver - [6-1-Mister-Class Kr.sm].png](/zh-Hans-CN/files/Download/nAW8yY/2023-10-15-18_24_01-SMath-Solver---[6-1-Mister-Class-Kr.sm].png)
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
Valery, as it looks all doctored.
Thanks Alvaro for the robust Broyden.
Curious, Solver 30405 Slope/Intercept back on foot.
6-1-Mister-Class (1).sm (65.74 KiB)已下载 1310 次。
Thanks Alvaro for the robust Broyden.
Curious, Solver 30405 Slope/Intercept back on foot.
6-1-Mister-Class (1).sm (65.74 KiB)已下载 1310 次。
And what about 3D fitting in SMath?
See please my old problem in Mathcad
http://twt.mpei.ac.ru/ochkov/car/c_e.html
Online calculation
http://twt.mpei.ac.ru/MCS/Worksheets/old-car.xmcd
See please my old problem in Mathcad
http://twt.mpei.ac.ru/ochkov/car/c_e.html
Online calculation
http://twt.mpei.ac.ru/MCS/Worksheets/old-car.xmcd
The second and third fit aren't really robust (quite some dependence on initial guesses)

Gebrauchtwagen.txt (729 B)已下载 963 次。
Gebrauchtwagen.sm (90.47 KiB)已下载 1378 次。

Gebrauchtwagen.txt (729 B)已下载 963 次。
Gebrauchtwagen.sm (90.47 KiB)已下载 1378 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Valery Ochkov 2023/10/16 12:11:00
Wunderbar!
Send me please the M matrix as sm-file!
Send me please the M matrix as sm-file!
WroteAnd what about 3D fitting in SMath?
See please my old problem in Mathcad
http://twt.mpei.ac.ru/ochkov/car/c_e.html
Online calculation
http://twt.mpei.ac.ru/MCS/Worksheets/old-car.xmcd
Another way, from the same previous post .
fit cars.sm (83.96 KiB)已下载 1386 次。
Best regards.
Alvaro.
WroteWunderbar!
Send me please the M matrix as sm-file!
The data is from your website. I copy-pasted the table to a new text file and imported it. Just use the files provided in my post.
As to the last plot: I guess the mileage limits of the individual lines are taken from the minimum and maximum slope observed in the age-mileage plot (fig.2 in your reference)?
Do you see any particular problem or do you just want the work getting done?
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
do you just want the work getting done?
Yes ;-)
Yes ;-)
Global fit Cholesky
Frequently, you can manage the Phi vector for a best regional fit.
Project fit cars Cholesky.sm (19.75 KiB)已下载 1348 次。
Frequently, you can manage the Phi vector for a best regional fit.
Project fit cars Cholesky.sm (19.75 KiB)已下载 1348 次。
1位用户喜欢此帖子
Valery Ochkov 2023/10/17 01:09:00
- 有新帖
- 无新帖

