One more about lens

One more about lens - Messages

#1 Posted: 12/1/2024 1:52:00 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

How can we use here a Mathcad-block?
Lens-Mathcad-Block.sm (43 KiB) downloaded 76 time(s).

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

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

1402 likes in 1708 posts.

Group: 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 users liked this post
Valery Ochkov 12/2/2024 3:44:00 PM
#3 Posted: 12/1/2024 7:52:45 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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.

File not found.File not found.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Valery Ochkov 12/2/2024 3:45:00 PM, francesco rapuano 12/3/2024 4:21:00 AM
#4 Posted: 12/7/2024 1:02:58 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Mathcad Prime
Lens.png
Lens-MP-1.png
Lens-MP-2.png
#5 Posted: 12/8/2024 1:05:34 AM
Cornel

Cornel

2 likes in 78 posts.

Group: 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 Posted: 12/8/2024 1:21:21 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: 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 Posted: 12/8/2024 2:29:44 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: 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 Posted: 12/8/2024 3:54:39 AM
Cornel

Cornel

2 likes in 78 posts.

Group: 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 Posted: 12/8/2024 5:04:39 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: 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 KiB) downloaded 121 time(s).
RKA.pdf (931 KiB) downloaded 135 time(s).

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 Posted: 12/8/2024 8:58:47 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Wrote

How can we use here a Mathcad-block?
Lens-Mathcad-Block.sm (43 KiB) downloaded 76 time(s).

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 KiB) downloaded 61 time(s).

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

Best regards.
Alvaro.
#11 Posted: 12/9/2024 10:44:48 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

How to create this picture
https://en.wikipedia.org/wiki/Spherical_aberration
aberration.png
#12 Posted: 12/10/2024 4:11:05 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Hi Valery. This is a way.

lens.png

spherical aberration.sm (15 KiB) downloaded 72 time(s).

Best regards.
Alvaro.
2 users liked this post
Oscar Campo 12/10/2024 9:43:00 AM, Valery Ochkov 12/10/2024 12:26:00 PM
#13 Posted: 12/10/2024 12:38:25 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Thanks!
The last step
Cyrcles.png
#14 Posted: 12/10/2024 9:21:41 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

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

spherical aberration.sm (26 KiB) downloaded 78 time(s).

lens.png

Best regards.
Alvaro.
3 users liked this post
francesco rapuano 12/10/2024 11:05:00 PM, NDTM Amarasekera 12/10/2024 11:16:00 PM, Вячеслав Мезенцев 12/10/2024 11:19:00 PM
#15 Posted: 12/10/2024 9:35:39 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote

Hi Valery. This is a way.

...

spherical aberration.sm (15 KiB) downloaded 72 time(s).

Best regards.
Alvaro.




Very elegant solution
1 users liked this post
Alvaro Diaz Falconi 12/11/2024 6:18:00 AM
#16 Posted: 12/11/2024 3:06:13 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Root-free version of the spherical lens

spherical aberration_Kr.png
spherical aberration_Kr.sm (12 KiB) downloaded 64 time(s).

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Alvaro Diaz Falconi 12/11/2024 6:18:00 AM
#17 Posted: 12/11/2024 6:22:06 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: 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 users liked this post
Oscar Campo 12/11/2024 12:09:00 PM
#18 Posted: 12/12/2024 4:49:07 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

spherical aberration_Kr.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Oscar Campo 12/12/2024 6:29:00 PM, Alvaro Diaz Falconi 12/13/2024 7:27:00 AM
  • New Posts New Posts
  • No New Posts No New Posts