Matlab Runtime Library - Consists of approximately 400 Matlab math functions - Messages
#81 Posted: 8/20/2019 6:57:04 AM
As I see, we can use Matlab Runtime instead of current solution. Using it, we can get a 64-bit version of the plugin.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
frapuano 8/20/2019 9:53:00 AM
#82 Posted: 1/8/2022 11:25:51 PM


Plugin updated. Only the 32-bit version is available.
Changes:
- plugin renamed to Matlab Runtime Library;
- converting the task for the ODE solvers to the numerical form is now performed through the Mathcad Toolbox plugin (to avoid code duplication), so it must be installed;
- totally refactored.

Russia ☭ forever, Viacheslav N. Mezentsev
#83 Posted: 1/10/2022 5:29:42 AM
#84 Posted: 1/10/2022 5:41:40 AM
WroteDoes it work only with the older version?
By me, unfortunately, this plugin is not accessible.
You need to switch the program to 32-bit mode. This is an old library and didn't exist at that time in 64-bit form. That is why I additionally pointed it out.
You must manually change the bitness of the executable file in administrator mode. After that, the library will become available.


CorFlags will help you to use this plugin on 64-bit system.
32-bit ON: CorFlags /32bit+ Solver.exe or CorFlags /32bit+ SMathStudio_Desktop.exe
32-bit OFF: CorFlags /32bit- Solver.exe or CorFlags /32bit- SMathStudio_Desktop.exe
CorFlags.zip (141 KiB) downloaded 165 time(s).

Russia ☭ forever, Viacheslav N. Mezentsev
3 users liked this post
Davide Carpi 1/11/2022 7:07:00 AM, Andrey Ivashov 1/11/2022 3:28:00 PM, Oscar Campo 10/14/2022 8:52:00 AM
#85 Posted: 1/11/2022 5:53:20 AM
Hallo Viacheslav,
thnak you for your help and your quick reply!
Best regards,
Andrey
thnak you for your help and your quick reply!
Best regards,
Andrey
#86 Posted: 10/14/2022 2:10:58 PM
WroteAs I see, we can use Matlab Runtime instead of current solution. Using it, we can get a 64-bit version of the plugin.
Hi,
Any news of using this runtime on 64 bits version?
#87 Posted: 10/14/2022 4:35:37 PM
It differs in structure and I can't find examples of how to use it separately from matlab. In addition, the size of the distribution is much larger.
I will have to start all over again for the new version of matlab engine.
I will have to start all over again for the new version of matlab engine.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Oscar Campo 10/14/2022 5:07:00 PM
#88 Posted: 7/28/2025 7:32:42 AM
Deepseek advised how to use a 32-bit application in a 64-bit environment. It will be slower, but practically possible. If desired, it will be possible to connect the old engine. ODE solvers will also work. The slowdown will be due to the fact that the interaction interface will be string-based, but it is better than nothing.


Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Alvaro Diaz Falconi 7/28/2025 8:23:50 AM
#89 Posted: 7/28/2025 8:30:23 AM
Hi Viacheslav. What about an interface for Octave? In a simplified version: one that takes a string in SMath in Octave language, and returns either a string, in case there is a symbolic result, or a matrix, if the result is purely numerical. I think this would greatly simplify both the writing of the code and the subsequent handling of the result in SMath.
As examples of handling Octave from C#, you can use https://github.com/apaka/octave-sharp or https://www.codeproject.com/Articles/342007/OctaveSharp-Running-GNU-Octave-with-Csharp
Best regards.
Alvaro.
As examples of handling Octave from C#, you can use https://github.com/apaka/octave-sharp or https://www.codeproject.com/Articles/342007/OctaveSharp-Running-GNU-Octave-with-Csharp
Best regards.
Alvaro.
Edited 7/28/2025 8:31:09 AM
#90 Posted: 7/28/2025 11:25:58 AM
For matlab there is a detailed programmer's guide, which describes the set of functions, their parameters and return values. It is clear how to implement it, but for other programs you need to make a special parser, as it is done for maple and maxima, which is more difficult.
MATLAB C++ Math Library. Reference. Version 2.pdf
MATLAB C++ Math Library. Reference. Version 2.pdf
Russia ☭ forever, Viacheslav N. Mezentsev
#91 Posted: 7/28/2025 11:31:06 AM
WroteAs examples of handling Octave from C#, you can use https://github.com/apaka/octave-sharp
This code can be automatically converted into a SMath plugin using AI.
Russia ☭ forever, Viacheslav N. Mezentsev
#92 Posted: 7/28/2025 11:51:08 AM
Hi. Maybe something like octave(string, A, B, C, ...) where string is the octave code, as string itself or the description in a variable. The code can include the smath variables in#1, in#2, in#3, ... which would be replaced by SMath variables A, B, C, ... Like in Mathcad matlab component, but with the sharp, so you can just make the subs with an strreplace instruction.
For simplicity, the result of the octave function would always be a single matrix, perhaps with some symbolic result, but always a matrix.
Finally, just as was implemented with Maxima, you can download a version of Octave for the user if the function don't find one already installed, as it is open source and does not require a special license to install silently.
Best regards.
Alvaro
For simplicity, the result of the octave function would always be a single matrix, perhaps with some symbolic result, but always a matrix.
Finally, just as was implemented with Maxima, you can download a version of Octave for the user if the function don't find one already installed, as it is open source and does not require a special license to install silently.
Best regards.
Alvaro
Edited 7/28/2025 11:54:17 AM
#93 Posted: 7/28/2025 4:29:43 PM
If the expression must be entered by the user and is not known in advance, then the following format can be used:
This is inconvenient, if you use many functions in a program, then this octave() will be everywhere.
But before this, it is necessary to check whether the specified library works at all.
octave( "command({var1},{var2})" ) # var1,var2 - smath variables
But before this, it is necessary to check whether the specified library works at all.
Edited 7/28/2025 4:33:24 PM
Russia ☭ forever, Viacheslav N. Mezentsev
#94 Posted: 7/28/2025 6:12:16 PM
The idea is to be able to execute Octave code from SMath using some very specialized function, like ode, pde solvers and others. For get some results that SMath can't yet, Maple and Maxima already exist. So there should only be two or three calls to Octave in a typical spreadsheet.
Like the old "Matlab component" in Mathcad.

But that would only be a specific proposal; a more general view would likely offer better options.
Regarding the notation, just like the one you ruled out in XYPlot (which was the correct thing to do, by the way), my only observation about the one you use frequently with {} is that SMath uses those brackets as regular parentheses, and I imagine that introduces some complication into the code. I'm more of a strrep-and-see-what-happens-next-way type.
Best regards.
Alvaro.
Like the old "Matlab component" in Mathcad.

But that would only be a specific proposal; a more general view would likely offer better options.
Regarding the notation, just like the one you ruled out in XYPlot (which was the correct thing to do, by the way), my only observation about the one you use frequently with {} is that SMath uses those brackets as regular parentheses, and I imagine that introduces some complication into the code. I'm more of a strrep-and-see-what-happens-next-way type.
Best regards.
Alvaro.
Edited 7/28/2025 6:19:40 PM
#95 Posted: 7/28/2025 7:33:26 PM
You can use an existing method. The octave-cli.exe interpreter must be accessible via known paths.
maple-octave-mode.sm (12 KiB) downloaded 14 time(s).

maple-octave-mode.sm (12 KiB) downloaded 14 time(s).

Edited 7/28/2025 7:35:49 PM
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
-
New Posts
-
No New Posts