Code generation

Code generation - Use Smarh to generate script code - Сообщения

#1 Опубликовано: 07.05.2020 08:36:36
smash

smash

1 сообщений из 2 понравились пользователям.

Группа: User

Hello everybody,

Great Tool and also very unique possibility to export Worksheet as EXE, perfect!
I am wondering if anybody ever thought about using SMath to collect formulas that could then be exported to a DLL and used by other programs for calculation.

Even more I would be interested in an export function for script code that could be implemented in other programs or compiled.

Why that?
It is extremely handy to develop and document calculations in SMath, but these functions need to be re-programmed afterards. Why not have an C++, Python or VBS exporter for that?

Maybe somebody already made a plugin that I didnt find?

Cheers
SMash
1 пользователям понравился этот пост
frapuano 07.05.2020 11:08:00
#2 Опубликовано: 07.05.2020 11:39:02
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

I think this is not possible in general case. Alternatively, you can use the command mode of the program. You can try portable version for this. So you can call SMath Studio as an external command tool. Theoretically, you can use the symbolic core of the program, but the author does not recommend doing this without permission.

I was thinking of having a symbolic engine as a dll for mathematical calculations. That's why I created this project.
Russia ☭ forever, Viacheslav N. Mezentsev
#3 Опубликовано: 07.05.2020 14:00:48
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

but these functions need to be re-programmed afterards. Why not have an C , Python or VBS exporter for that?



Within a certain range of flexibility it is possible, depends if you need to export the functions or the whole worksheet, functions written somewhere in the worksheet and passed as argument later or data unprocessed, and what is supported on both sides; f.e. microMathematics Plus and a Grasshopper plugin they both read the sm files, in WriterRegion you can simply copy and paste an equation from SMath to Microsoft Word, there are plugins to convert SMath data to excel/odt/latex/... formats
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Опубликовано: 07.05.2020 15:43:49
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

Hello everybody, ...

It is extremely handy to develop and document calculations in SMath, but these functions need to be re-programmed afterards. Why not have an C++, Python or VBS exporter for that?

Maybe somebody already made a plugin that I didnt find?

Cheers
SMash



Hi. You can try to use the codegen package from maple:

https://www.maplesoft.com/support/help/Maple/view.aspx?path=codegen

Maple is avaible at version 6 from a Viacheslav plugin.

Hope this helps.
Best regards.
Alvaro.
1 пользователям понравился этот пост
frapuano 07.05.2020 18:50:00
#5 Опубликовано: 08.05.2020 02:23:55
smash

smash

1 сообщений из 2 понравились пользователям.

Группа: User

Thank you very much for your replies. I'll give Maple a go then!
#6 Опубликовано: 08.05.2020 11:52:17
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Thank you very much for your replies. I'll give Maple a go then !


A mild Engineering task to give it your go .

Maths EDU [l_p_c_splines TOOLBOX] Hermite RHMSD.sm (87 КиБ) скачан 79 раз(а).


  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений