Matlab Runtime Library - Consists of approximately 400 Matlab math functions - Сообщения
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 пользователям понравился этот пост
frapuano 20.08.2019 09:53:00


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
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 КиБ) скачан 165 раз(а).

Russia ☭ forever, Viacheslav N. Mezentsev
3 пользователям понравился этот пост
Davide Carpi 11.01.2022 07:07:00, Andrey Ivashov 11.01.2022 15:28:00, Oscar Campo 14.10.2022 08:52:00
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
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?
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 пользователям понравился этот пост
Oscar Campo 14.10.2022 17:07:00
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 пользователям понравился этот пост
Alvaro Diaz Falconi 28.07.2025 08:23:50
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.
Отредактировано 28.07.2025 08:31:09
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
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
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
Отредактировано 28.07.2025 11:54:17
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.
Отредактировано 28.07.2025 16:33:24
Russia ☭ forever, Viacheslav N. Mezentsev
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.
Отредактировано 28.07.2025 18:19:40
You can use an existing method. The octave-cli.exe interpreter must be accessible via known paths.
maple-octave-mode.sm (12 КиБ) скачан 24 раз(а).

maple-octave-mode.sm (12 КиБ) скачан 24 раз(а).

Отредактировано 28.07.2025 19:35:49
Russia ☭ forever, Viacheslav N. Mezentsev
2 пользователям понравился этот пост
-
Новые сообщения
-
Нет новых сообщений