Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
|
Russia ☭ forever Viacheslav N. Mezentsev |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
With enough points, simply cinterp Smath. ODE HIRES.sm (68kb) downloaded 16 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
rkfixed(3|4) added, but I still don’t know which derivative symbol is better to take. (ʹ) - modifier letter prime (U+02B9) used below. I don't know how to enter it from the keyboard. Edited by user 10 December 2021 13:43:39(UTC)
| Reason: Not specified |
Russia ☭ forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
|
Russia ☭ forever Viacheslav N. Mezentsev |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Originally Posted by: uni (ʹ) - modifier letter prime (U 02B9) used below. I don't know how to enter it from the keyboard. This can be done in 2 steps: 1. Copy \02B9\ to text region. This code will turn into a text simbol (ʹ). 2. Select and copy it as variable name. PS. It looks like it's time to combine all Mathcad functions into one plugin - Mathcad Toolbox. It will contain all such functions: ODE solvers, spline functions, in/out functions and so on. Edited by user 05 December 2021 16:29:09(UTC)
| Reason: Not specified |
Russia ☭ forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,439 Was thanked: 891 time(s) in 566 post(s)
|
Hi. Your develop looks brillant. Originally Posted by: uni ... 1. Copy \02B9\ to text region. This code will turn into a text simbol (ʹ). 2. Select and copy it as variable name. ... Also, you can get any unicode char with this Originally Posted by: uni ... PS. It looks like it's time to combine all Mathcad functions into one plugin - Mathcad Toolbox. It will contain all such functions: ODE solvers, spline functions, in/out functions and so on. And don't forget the possibility that the area simply returns the equations of the differential equation or a non-linear system of equations so that the user can then try to solve the ode or nle systems with the functions he chooses. Best regards. Alvaro.
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,024 Was thanked: 1153 time(s) in 739 post(s)
|
Originally Posted by: uni rkfixed(3|4) added, but I still don’t know which derivative symbol is better to take. (ʹ) - modifier letter prime (U+02B9) used below. I don't know how to enter it from the keyboard.
This looks very interesting. Seems that it is not yet in the online gallery? In principle, the built-in diff(1) operator would be an option but it looks ugly if applied twice. The ordinary prime would be ok for me (just as it is used as tag in unit names), it is input as Shift # on german keyboards. diff2.sm (3kb) downloaded 11 time(s). |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: uni I still donât know which derivative symbol is better to take. (ʹ - modifier letter prime (U 02B9) used below. I don't know how to enter it from the keyboard. My preference goes for book style. US keyboard D apostrophe (x):=
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Originally Posted by: mkraska This looks very interesting. Seems that it is not yet in the online gallery? I can't contact Andrey directly. The server does not allow compiling the sources, as there is no free space. Therefore, the latest changes are not yet available. I've made some changes. I liked the idea with the str2num() function. Also I can override the diff(1) function, but that can be confusing. Now it is possible to numerically solve the Cauchy problem for one variable: diff(y(x),x,n)=F(x,y(x),...,diff(y(x),x,n-1)) . Later, I will expand the rest of the ODE solvers to support this simplified form. But for this I need to combine plugins and add interpolation functions similar to Mathcad (lspline(), interp(), ...). It will be more convenient for me to test the solvers, comparing the results with Mathcad. Block region collects equations in the form of a system and substitutes it as the first parameter into the function. Edited by user 10 December 2021 13:45:12(UTC)
| Reason: Not specified |
Russia ☭ forever Viacheslav N. Mezentsev |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Originally Posted by: mkraska The ordinary prime would be ok for me (just as it is used as tag in unit names), it is input as Shift # on german keyboards. I can add the ability to set this symbol directly in the document. This way you can change the default symbol. |
Russia ☭ forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Plugin updated. Please try. Examples: Changes: - rkfixed() now works correctly; - Odesolve block renamed to Mathcad Block; - the task for the ODE solver in the usual mathematical notation is supported; - default diff symbol is apostrophe ( ' ); - linterp() is used as an interpolation function; - refactored. Edited by user 10 December 2021 13:43:52(UTC)
| Reason: Not specified |
Russia ☭ forever Viacheslav N. Mezentsev |
2 users thanked uni for this useful post.
|
on 06/12/2021(UTC), on 06/12/2021(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,439 Was thanked: 891 time(s) in 566 post(s)
|
Originally Posted by: uni - linterp() is used as an interpolation function;
Hi Viacheslav, thanks, great job. One question: Why to use linterp instead cspline? The problem with cspline is about the border of the interval, where you have only diff by the left and the right, and there you can adapt the cubic splines to be linear or parabolic, but in the interior of the interval I guess that it's better cubic splines interpolation. ODEQuestion.sm (16kb) downloaded 16 time(s).Best regards. Alvaro.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
I will add the interpolation functions ( interp(), lspline(),... ) to the plugin and rename it to Mathcad Toolbox. After that, it will be possible to test its work, comparing it with the Mathcad numerically. Edited by user 06 December 2021 21:46:41(UTC)
| Reason: Not specified |
Russia ☭ forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Plugin updated. Changes:- plugin renamed to Mathcad Toolbox; - version changed to 0.3.*; - interp(), lspline() functions added; - lspline() function used in any ode solvers. |
Russia ☭ forever Viacheslav N. Mezentsev |
2 users thanked uni for this useful post.
|
on 07/12/2021(UTC), on 07/12/2021(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,024 Was thanked: 1153 time(s) in 739 post(s)
|
Really nice generic block concept! It is a really good reason for updating the handbook and the portable distribution. This is how to use it with symbolic solutions using Solve() (Maxima plugin): Solve block.sm (6kb) downloaded 26 time(s).Looking forward to a RK integrator for multi-DOF systems. This is how I would imagine the user interface. Federpendel-block.sm (49kb) downloaded 28 time(s). |
|
1 user thanked mkraska for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Originally Posted by: mkraska Looking forward to a RK integrator for multi-DOF systems. This is how I would imagine the user interface. This is the next step, but the existing solution is not stable and has some bugs. |
Russia ☭ forever Viacheslav N. Mezentsev |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Plugin updated. Changes:- plugin merged with Mathcad File Access (all functions are inside Mathcad Toolbox); - the condition has changed in the definition of the solver function (to support both directions of integration): (x-xmin)*(xmax-x)>=0; - pspline() function added. |
Russia ☭ forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,439 Was thanked: 891 time(s) in 566 post(s)
|
Originally Posted by: uni Originally Posted by: mkraska Looking forward to a RK integrator for multi-DOF systems. This is how I would imagine the user interface. This is the next step, but the existing solution is not stable and has some bugs. Hi. In the meantime, we can play with things like this: Solve block.sm (55kb) downloaded 32 time(s).Best regards. Alvaro. Edited by user 07 December 2021 20:04:36(UTC)
| Reason: Not specified
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Originally Posted by: Razonar Hi. In the meantime, we can play with things like this Looks great, but something is missing. Edited by user 10 December 2021 13:44:39(UTC)
| Reason: Not specified |
Russia ☭ forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,553 Was thanked: 1309 time(s) in 767 post(s)
|
Plugin updated. Changes: - fixed algorithm for selecting regions (Mathcad Block). |
Russia ☭ forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
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.