Type conversion error while solving a system of ODEs

Type conversion error while solving a system of ODEs - 消息

#1 已发布: 2023/1/26 20:33:08
Oichi

Oichi

4个赞,共35个帖子。

组: 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.71 KiB)已下载 1326 次。
#2 已发布: 2023/1/26 21:03:21
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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 已发布: 2023/1/27 07:02:41
Oichi

Oichi

4个赞,共35个帖子。

组: User

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

Jean Giraud

983个赞,共6,866个帖子。

组: User

Gyroscope.sm (32.14 KiB)已下载 1315 次。
#5 已发布: 2023/1/27 12:36:28
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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

Gyroscope.sm (33.68 KiB)已下载 1346 次。
#6 已发布: 2023/1/27 12:45:43
Oichi

Oichi

4个赞,共35个帖子。

组: User

Thank you so much 🥰
#7 已发布: 2023/1/27 15:08:54
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Thank you so much


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

ODE Parametric.sm (19.98 KiB)已下载 1343 次。
#8 已发布: 2023/1/27 15:24:42
Oichi

Oichi

4个赞,共35个帖子。

组: User

How can I get these matlab solvers
#9 已发布: 2023/1/28 06:45:28
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2023/1/28 06:59:40
Oichi

Oichi

4个赞,共35个帖子。

组: 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 已发布: 2023/1/28 08:20:48
Oichi

Oichi

4个赞,共35个帖子。

组: User

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

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2023/1/28 10:37:24
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2023/1/28 13:02:25
Oichi

Oichi

4个赞,共35个帖子。

组: 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 已发布: 2023/1/28 13:03:30
Oichi

Oichi

4个赞,共35个帖子。

组: 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 已发布: 2023/1/28 21:04:21
overlord

overlord

600个赞,共1,381个帖子。

组: 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.04 KiB)已下载 414 次。

I have personally tried, it does work.
matlab.png
#17 已发布: 2023/1/29 04:45:46
Oichi

Oichi

4个赞,共35个帖子。

组: 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.04 KiB)已下载 414 次。

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


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

  • 有新帖
  • 无新帖