One more about lens

One more about lens - 消息

#1 已发布: 2024/12/1 01:52:00
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

How can we use here a Mathcad-block?
Lens-Mathcad-Block.sm (43.8 KiB)已下载 1856 次。

See too
https://en.smath.com/forum/yaf_postst25212_Lens.aspx
#2 已发布: 2024/12/1 18:08:12
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Wrote

How can we use here a Mathcad-block?


Here the function rkfixed() can't process the incoming expressions correctly. The block has nothing to do with it, it does not perform detailed analysis of expressions.
This is a bug in the function. The function has not been tested for this case. I can't see what's wrong here right now.

Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
Valery Ochkov 2024/12/2 15:44:00
#3 已发布: 2024/12/1 19:52:45
Martin Kraska

Martin Kraska

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

组: Moderator

This is not a solution of the rkfixed problem, just a little playing around with X-Y plot.

Here, an option of setting the aspect ratio of the axes to 1 would be good.

未找到文件。未找到文件。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2位用户喜欢此帖子
Valery Ochkov 2024/12/2 15:45:00, francesco rapuano 2024/12/3 04:21:00
#4 已发布: 2024/12/7 13:02:58
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Mathcad Prime
Lens.png
Lens-MP-1.png
Lens-MP-2.png
#5 已发布: 2024/12/8 01:05:34
Cornel

Cornel

2个赞,共78个帖子。

组: User

I am wondering if there is such a kind of Mathcad Prime odesolve for solving differential equations numerically also for SMath Studio somehow?
#6 已发布: 2024/12/8 01:21:21
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Wrote

I am wondering if there is such a kind of Mathcad Prime odesolve for solving differential equations numerically also for SMath Studio somehow?



Not yet, but will be soon!
Question - why is the answer meters squared, and not just meters?
#7 已发布: 2024/12/8 02:29:44
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Wrote

I am wondering if there is such a kind of Mathcad Prime odesolve for solving differential equations numerically also for SMath Studio somehow?


What's wrong with the existing solvers?

Russia ☭ forever, Viacheslav N. Mezentsev
#8 已发布: 2024/12/8 03:54:39
Cornel

Cornel

2个赞,共78个帖子。

组: User

Wrote

Wrote

I am wondering if there is such a kind of Mathcad Prime odesolve for solving differential equations numerically also for SMath Studio somehow?


What's wrong with the existing solvers?



Because odesolve in Mathcad Prime:

1. Do not require to rewrite the differential equation of a higher order into a system of first order odes

2. Determines whether a system is stiff or nonstiff and then is using accordingly the stiff numerical differential eq solver or nonstiff numerical differential eq solver

3. Can solve numerically a system of differential equations (whatever it's a system of first order differential eq or a system of higher order differential eq)

What are these existing numerical solvers of differential eq in SMath? What are the posibilities of SMath to solve numerically differential equations? Exist at least one solver that mimic the Mathcad Prime odesolve (i.e. the 3 points above menționed)?
#9 已发布: 2024/12/8 05:04:39
Alvaro

Alvaro

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

组: User

Hi Cornel. For points 1 and 3, SMath can do what Mathcad can, and just a little more. Please, check the first post in this plugin. Can mathcad solve this odes?

RKA.sm (308.62 KiB)已下载 2283 次。
RKA.pdf (931.16 KiB)已下载 1760 次。

About point 2, one would have to review the documentation for the following plugins to see if they are capable, and to what extent, of doing what you are asking, and choose it for the solver in the SMath's solver block.

● [topic=17088]Intel ODE Solver Library[/topic]
● [topic=1918]DotNumerics[/topic]
● [topic=13809]SADEL[/topic]
● [topic=1970]Matlab C++ Math Library[/topic]
● [topic=17063]OSLO[/topic]
● [topic=17067]lsoda[/topic]
● [topic=1997]GNU Scientific Library (GSL)[/topic]



Best regards.
Alvaro.
#10 已发布: 2024/12/8 08:58:47
Alvaro

Alvaro

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

组: User

Wrote

How can we use here a Mathcad-block?
Lens-Mathcad-Block.sm (43.8 KiB)已下载 1856 次。

See too
https://en.smath.com/forum/yaf_postst25212_Lens.aspx



Hi. dsol can solve it with this setup:

dsol.png

RKA-Lens.sm (179.91 KiB)已下载 1825 次。

I also use the Martin's setup for the plot.

Best regards.
Alvaro.
#11 已发布: 2024/12/9 10:44:48
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

How to create this picture
https://en.wikipedia.org/wiki/Spherical_aberration
aberration.png
#12 已发布: 2024/12/10 04:11:05
Alvaro

Alvaro

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

组: User

Hi Valery. This is a way.

lens.png

spherical aberration.sm (15.88 KiB)已下载 1815 次。

Best regards.
Alvaro.
2位用户喜欢此帖子
Oscar Campo 2024/12/10 09:43:00, Valery Ochkov 2024/12/10 12:26:00
#13 已发布: 2024/12/10 12:38:25
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Thanks!
The last step
Cyrcles.png
#14 已发布: 2024/12/10 21:21:41
Alvaro

Alvaro

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

组: User

Hi. The screen. I also simplify a little the calculations.

spherical aberration.sm (26.41 KiB)已下载 1974 次。

lens.png

Best regards.
Alvaro.
3位用户喜欢此帖子
francesco rapuano 2024/12/10 23:05:00, NDTM Amarasekera 2024/12/10 23:16:00, Вячеслав Мезенцев 2024/12/10 23:19:00
#15 已发布: 2024/12/10 21:35:39
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Wrote

Hi Valery. This is a way.

...

spherical aberration.sm (15.88 KiB)已下载 1815 次。

Best regards.
Alvaro.




Very elegant solution
1位用户喜欢此帖子
Alvaro 2024/12/11 06:18:00
#16 已发布: 2024/12/11 03:06:13
Martin Kraska

Martin Kraska

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

组: Moderator

Root-free version of the spherical lens

spherical aberration_Kr.png
spherical aberration_Kr.sm (12.37 KiB)已下载 1754 次。

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Alvaro 2024/12/11 06:18:00
#17 已发布: 2024/12/11 06:22:06
Alvaro

Alvaro

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

组: User

Wrote

Very elegant solution



Gracias Oscar! Pero espérate tantito nomás para que veas lo que puede hacer un doc alemán.

Thanks Oscar! But wait a little longer so you can see what a German doctor can do.

Best regards.
Alvaro.




1位用户喜欢此帖子
Oscar Campo 2024/12/11 12:09:00
#18 已发布: 2024/12/12 04:49:07
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

spherical aberration_Kr.png
Russia ☭ forever, Viacheslav N. Mezentsev
2位用户喜欢此帖子
Oscar Campo 2024/12/12 18:29:00, Alvaro 2024/12/13 07:27:00
  • 有新帖
  • 无新帖