SMath Studio Forum
»
SMath Studio
»
Questions
»
Type conversion error while solving a system of ODEs
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
Thanks for creating such a helpful software, I have a problem solving the attached system of ODEs it keeps saying Type conversion error on Adams function please help. Gyroscope.sm (10kb) downloaded 10 time(s).Edited by user 27 January 2023 16:09:37(UTC)
| Reason: Not specified
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,094  Was thanked: 629 time(s) in 396 post(s)
|
Hi. You can't build matrices A and B that way, but you can with stack and augment. BTW, it seems that the interval where it finds the solution is the [0,1] giving overflow error for 1000 steps and the interval [0,5]  Best regards. Alvaro.
|
|
|
|
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
Oh okay,,, i didnt know that, Thank you so much
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,397  Was thanked: 928 time(s) in 756 post(s)
|
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,397  Was thanked: 928 time(s) in 756 post(s)
|
... plot enough points to view the system response. Cheers ... Jean. Gyroscope.sm (34kb) downloaded 7 time(s).
|
|
|
|
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,397  Was thanked: 928 time(s) in 756 post(s)
|
Originally Posted by: Oichi  Thank you so much In the same concept of parametric ODE. Cheers ... Jean. ODE Parametric.sm (20kb) downloaded 6 time(s).
|
|
|
|
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
How can I get these matlab solvers
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,540   Location: Italy Was thanked: 1270 time(s) in 835 post(s)
|
Originally Posted by: Oichi  How can I get these matlab solvers The mwode* functions are part of the plugin Matlab Runtime Library; it ask you to install when you open a worksheet that contains these functions or you can download manually from the extensions manager. Edited by user 28 January 2023 12:47:51(UTC)
| Reason: Not specified |
If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects |
|
|
|
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
Originally Posted by: Davide Carpi  Originally Posted by: Oichi  How can I get these matlab solvers The mwode* functions are part of the plugin Matlab Runtime Library; it ask you to install when you open a worksheet that contains these functions or you can download manually from the extensions manager. Thank you so much
|
|
|
|
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
I have the plugin of Matlab runtime library and it has no ode solvers of matlab
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,397  Was thanked: 928 time(s) in 756 post(s)
|
Originally Posted by: Oichi  I have the plugin of Matlab runtime library and it has no ode solvers of matlab I have all 'mw...' from native Smath 6179. that was installed from the option installerrather than from plugins. Does it suggest to re-install your version ?
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 959  Was thanked: 394 time(s) in 261 post(s)
|
Originally Posted by: Oichi  I have the plugin of Matlab runtime library and it has no ode solvers of matlab It may not work on windows 64-bit or linux/mono systems. There is a trick for windows however. Link to Extension PageRegards
|
|
|
|
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
Originally Posted by: overlord  Originally Posted by: Oichi  I have the plugin of Matlab runtime library and it has no ode solvers of matlab It may not work on windows 64-bit or linux/mono systems. There is a trick for windows however. Link to Extension PageRegards I did everything written in that link but I still can't find those matlab functions
|
|
|
|
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
Originally Posted by: Jean Giraud  Originally Posted by: Oichi  I have the plugin of Matlab runtime library and it has no ode solvers of matlab I have all 'mw...' from native Smath 6179. that was installed from the option installerrather than from plugins. Does it suggest to re-install your version ? I don't understand you, can you provide further explanation
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 959  Was thanked: 394 time(s) in 261 post(s)
|
Originally Posted by: Oichi  I did everything written in that link but I still can't find those matlab functions Did you also made Solver.exe 32bit? When uni wrote that information, SMath was not splitted to Solver and Writer. Run these two commands as administrator. Code:CorFlags.exe /32bit+ Solver.exe
CorFlags.exe /32bit+ SMathStudio_Desktop.exe
And check if they are 32bit signed, output should look like this. Code:C:\Program Files (x86)\SMath Studio> CorFlags.exe Solver.exe
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.8.9037.0
Copyright (c) Microsoft Corporation. All rights reserved.
Version : v2.0.50727
CLR Header: 2.5
PE : PE32
CorFlags : 0x3
ILONLY : 1
32BITREQ : 1
32BITPREF : 0
Signed : 0
If method above doesn't work, use this new version of CorFlags. CorFlags.zip (100kb) downloaded 4 time(s).I have personally tried, it does work. 
|
|
|
|
  Rank: Member Groups: Registered
Joined: 27/01/2023(UTC) Posts: 18  
|
Originally Posted by: overlord  Originally Posted by: Oichi  I did everything written in that link but I still can't find those matlab functions Did you also made Solver.exe 32bit? When uni wrote that information, SMath was not splitted to Solver and Writer. Run these two commands as administrator. Code:CorFlags.exe /32bit+ Solver.exe
CorFlags.exe /32bit+ SMathStudio_Desktop.exe
And check if they are 32bit signed, output should look like this. Code:C:\Program Files (x86)\SMath Studio> CorFlags.exe Solver.exe
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.8.9037.0
Copyright (c) Microsoft Corporation. All rights reserved.
Version : v2.0.50727
CLR Header: 2.5
PE : PE32
CorFlags : 0x3
ILONLY : 1
32BITREQ : 1
32BITPREF : 0
Signed : 0
If method above doesn't work, use this new version of CorFlags. CorFlags.zip (100kb) downloaded 4 time(s).I have personally tried, it does work.  Yes, Thanks ^^ It finally worked. I needed to do that solver corflags
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Type conversion error while solving a system of ODEs
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.