SMath vs Mathcad

SMath vs Mathcad - 消息

#1 已发布: 2024/8/6 11:32:14
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

I can solve this problem in Mathcad - see pls the picture.
But cannot in SMath - see the SMath-file :-(
Help please
Stud-Mathcad.png
6-1-Mister-Class-a-b-c.sm (15.82 KiB)已下载 1637 次。
#2 已发布: 2024/8/6 13:22:51
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. Try this function, from Viacheslav ALGLIB plugin.

nleq.png

Best regards.
Alvaro.
1位用户喜欢此帖子
Valery Ochkov 2024/8/6 14:30:00
#3 已发布: 2024/8/6 14:34:07
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Thanks and sorry!
I do not see in your solution derivatives!
???

#4 已发布: 2024/8/6 18:36:47
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Here is a version with Maxima Fit(). Note that Fit() uses a least squares procedure, whereas Mathcad obviously directly minimizes the average linear distance between data points and model.
Ordinary linear regression with slope and intersect is a least squares fit for the vertical distance.

6-1-Mister-Class-a-b-c_kr.sm (35.92 KiB)已下载 1604 次。
2024-08-06 13_32_52-SMath Solver - [6-1-Mister-Class-a-b-c_kr.sm_].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Valery Ochkov 2024/8/6 18:53:00
#5 已发布: 2024/8/6 19:22:00
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Is there in SMath or Maxima the median-median regression
6-2-Mister-Class-MM.png

#7 已发布: 2024/8/7 00:29:39
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Interesting paper. Yet the authors keep one question out of scope: In case of orthogonal distance minimizing (be it linear or quadratic), rescaling of the data matter. (other than with ordinary linear regression). This means that you get different results if you provide your data not in cm but in mm.
Perhaps the data should be scaled such that the uncertainty (measurement error) is of similar numeric value for x and y.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 已发布: 2024/8/7 02:01:47
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

See please three plots
6-2-Mister-Class-Dir.png

#9 已发布: 2024/8/7 02:12:28
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

See please more
6-6-CKO.png
#10 已发布: 2024/8/7 15:24:46
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Wrote

See please three plots
6-2-Mister-Class-Dir.png



The perpendicular distance is only geometrically perpendicular in the graph if the axes tick ratio is 1 (as I tried to set in my earlier post) unless you introduce an anisotropic metric for the distance (or standardize the quantities).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#11 已发布: 2024/8/7 19:51:31
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. Chosen different guess values, we can reproduce the maxima result. Also, notice that meanwhile the Maxima MSE function decreases, the "classical" one increases. I'm not sure how to call Maxima MSE for implicit functions.

mse.sm (25.22 KiB)已下载 1646 次。

Best regards
Alvaro
  • 有新帖
  • 无新帖