Type conversion error while solving a system of ODEs

Type conversion error while solving a system of ODEs - Messages

#1 Posted: 1/26/2023 8:33:08 PM
Oichi

Oichi

3 likes in 35 posts.

Group: User

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 (9 KiB) downloaded 28 time(s).
#2 Posted: 1/26/2023 9:03:21 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

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]

Clipboard01.png

Best regards.
Alvaro.
#3 Posted: 1/27/2023 7:02:41 AM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Oh okay,,, i didnt know that, Thank you so much
#4 Posted: 1/27/2023 12:07:53 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Gyroscope.sm (32 KiB) downloaded 21 time(s).
#5 Posted: 1/27/2023 12:36:28 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... plot enough points to view the system response.
Cheers ... Jean.

Gyroscope.sm (33 KiB) downloaded 27 time(s).
#6 Posted: 1/27/2023 12:45:43 PM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Thank you so much 🥰
#7 Posted: 1/27/2023 3:08:54 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Thank you so much


In the same concept of parametric ODE.
Cheers ... Jean.

ODE Parametric.sm (19 KiB) downloaded 23 time(s).
#8 Posted: 1/27/2023 3:24:42 PM
Oichi

Oichi

3 likes in 35 posts.

Group: User

How can I get these matlab solvers
#9 Posted: 1/28/2023 6:45:28 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

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.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#10 Posted: 1/28/2023 6:59:40 AM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Wrote

Wrote

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
#11 Posted: 1/28/2023 8:20:48 AM
Oichi

Oichi

3 likes in 35 posts.

Group: User

I have the plugin of Matlab runtime library and it has no ode solvers of matlab
#12 Posted: 1/28/2023 10:31:32 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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 installer
rather than from plugins.
Does it suggest to re-install your version ?
#13 Posted: 1/28/2023 10:37:24 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

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 Page

Regards
#14 Posted: 1/28/2023 1:02:25 PM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Wrote

Wrote

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 Page

Regards



I did everything written in that link but I still can't find those matlab functions
#15 Posted: 1/28/2023 1:03:30 PM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Wrote

Wrote

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 installer
rather than from plugins.
Does it suggest to re-install your version ?



I don't understand you, can you provide further explanation
#16 Posted: 1/28/2023 9:04:21 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

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.
CorFlags.exe /32bit+ Solver.exe
CorFlags.exe /32bit+ SMathStudio_Desktop.exe
And check if they are 32bit signed, output should look like this.
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 (99 KiB) downloaded 21 time(s).

I have personally tried, it does work.
matlab.png
#17 Posted: 1/29/2023 4:45:46 AM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Wrote

Wrote

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.
CorFlags.exe /32bit+ Solver.exe
CorFlags.exe /32bit+ SMathStudio_Desktop.exe
And check if they are 32bit signed, output should look like this.
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 (99 KiB) downloaded 21 time(s).

I have personally tried, it does work.
matlab.png


Yes, Thanks ^^ It finally worked. I needed to do that solver corflags

  • New Posts New Posts
  • No New Posts No New Posts