Code generation

Code generation - Use Smarh to generate script code - Messages

#1 Posted: 5/7/2020 8:36:36 AM
smash

smash

1 likes in 2 posts.

Group: 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 users liked this post
frapuano 5/7/2020 11:08:00 AM
#2 Posted: 5/7/2020 11:39:02 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: 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 Posted: 5/7/2020 2:00:48 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: 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 Posted: 5/7/2020 3:43:49 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: 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 users liked this post
frapuano 5/7/2020 6:50:00 PM
#5 Posted: 5/8/2020 2:23:55 AM
smash

smash

1 likes in 2 posts.

Group: User

Thank you very much for your replies. I'll give Maple a go then!
#6 Posted: 5/8/2020 11:52:17 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 111 time(s).


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