Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline OchkovVF  
#1 Posted : 01 December 2024 07:52:00(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 430
Man
Russian Federation

Was thanked: 42 time(s) in 39 post(s)
How can we use here a Mathcad-block?
Lens-Mathcad-Block.sm (44kb) downloaded 14 time(s).

See too
https://en.smath.com/for...af_postst25212_Lens.aspx

Edited by user 01 December 2024 07:54:04(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline uni  
#2 Posted : 02 December 2024 00:08:12(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
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 (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 02/12/2024(UTC)
Offline mkraska  
#3 Posted : 02 December 2024 01:52:45(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,046
Germany

Was thanked: 1176 time(s) in 752 post(s)
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.

2024-12-01 13_32_39-SMath Solver - [Lens-Mathcad-Block.sm_].png Lens-Mathcad-Block_Kr.sm (53kb) downloaded 6 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 02/12/2024(UTC),  on 03/12/2024(UTC)
Offline OchkovVF  
#4 Posted : 07 December 2024 19:02:58(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 430
Man
Russian Federation

Was thanked: 42 time(s) in 39 post(s)
Mathcad Prime
Lens.png
Lens-MP-1.png
Lens-MP-2.png

Edited by user 07 December 2024 19:09:50(UTC)  | Reason: Not specified

Offline Cornel  
#5 Posted : 08 December 2024 07:05:34(UTC)
Cornel


Rank: Advanced Member

Groups: Registered
Joined: 04/10/2024(UTC)
Posts: 79
Man

Was thanked: 2 time(s) in 2 post(s)
I am wondering if there is such a kind of Mathcad Prime odesolve for solving differential equations numerically also for SMath Studio somehow?
Offline OchkovVF  
#6 Posted : 08 December 2024 07:21:21(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 430
Man
Russian Federation

Was thanked: 42 time(s) in 39 post(s)
Originally Posted by: Cornel Go to Quoted Post
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?
Offline uni  
#7 Posted : 08 December 2024 08:29:44(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
Originally Posted by: Cornel Go to Quoted Post
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 (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline Cornel  
#8 Posted : 08 December 2024 09:54:39(UTC)
Cornel


Rank: Advanced Member

Groups: Registered
Joined: 04/10/2024(UTC)
Posts: 79
Man

Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: uni Go to Quoted Post
Originally Posted by: Cornel Go to Quoted Post
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)?

Edited by user 08 December 2024 09:59:54(UTC)  | Reason: Not specified

Offline Razonar  
#9 Posted : 08 December 2024 11:04:39(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
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 (309kb) downloaded 50 time(s).
RKA.pdf (932kb) downloaded 50 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.

Intel ODE Solver Library
DotNumerics
SADEL
Matlab C++ Math Library
OSLO
lsoda
GNU Scientific Library (GSL)


Best regards.
Alvaro.

Edited by user 08 December 2024 11:13:42(UTC)  | Reason: Not specified

Offline Razonar  
#10 Posted : 08 December 2024 14:58:47(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
How can we use here a Mathcad-block?
Lens-Mathcad-Block.sm (44kb) downloaded 14 time(s).

See too
https://en.smath.com/for...af_postst25212_Lens.aspx


Hi. dsol can solve it with this setup:

dsol.png

RKA-Lens.sm (180kb) downloaded 7 time(s).

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

Best regards.
Alvaro.

Edited by user 08 December 2024 15:21:37(UTC)  | Reason: Not specified

Offline OchkovVF  
#11 Posted : 09 December 2024 16:44:48(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 430
Man
Russian Federation

Was thanked: 42 time(s) in 39 post(s)
Offline Razonar  
#12 Posted : 10 December 2024 10:11:05(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Hi Valery. This is a way.

lens.png

spherical aberration.sm (16kb) downloaded 9 time(s).

Best regards.
Alvaro.

Edited by user 10 December 2024 11:54:16(UTC)  | Reason: Not specified

thanks 2 users thanked Razonar for this useful post.
on 10/12/2024(UTC),  on 10/12/2024(UTC)
Offline OchkovVF  
#13 Posted : 10 December 2024 18:38:25(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 430
Man
Russian Federation

Was thanked: 42 time(s) in 39 post(s)
Thanks!
The last step
Cyrcles.png
Offline Razonar  
#14 Posted : 11 December 2024 03:21:41(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Hi. The screen. I also simplify a little the calculations.

spherical aberration.sm (27kb) downloaded 10 time(s).

lens.png

Best regards.
Alvaro.
thanks 3 users thanked Razonar for this useful post.
on 11/12/2024(UTC),  on 11/12/2024(UTC),  on 11/12/2024(UTC)
Offline oscampo  
#15 Posted : 11 December 2024 03:35:39(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 284
Man
Colombia
Location: Cali, Colombia

Was thanked: 119 time(s) in 81 post(s)
Originally Posted by: Razonar Go to Quoted Post
Hi Valery. This is a way.

...

spherical aberration.sm (16kb) downloaded 9 time(s).

Best regards.
Alvaro.



Very elegant solution
thanks 1 user thanked oscampo for this useful post.
on 11/12/2024(UTC)
Offline mkraska  
#16 Posted : 11 December 2024 09:06:13(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,046
Germany

Was thanked: 1176 time(s) in 752 post(s)
Root-free version of the spherical lens

spherical aberration_Kr.png
spherical aberration_Kr.sm (13kb) downloaded 7 time(s).

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 11/12/2024(UTC)
Offline Razonar  
#17 Posted : 11 December 2024 12:22:06(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Originally Posted by: oscampo Go to Quoted Post
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.



thanks 1 user thanked Razonar for this useful post.
on 11/12/2024(UTC)
Offline uni  
#18 Posted : 12 December 2024 10:49:07(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,639
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
spherical aberration_Kr.png
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 13/12/2024(UTC),  on 13/12/2024(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.