Import results from another smath studio file

Import results from another smath studio file - Messages

#1 Posted: 11/27/2022 1:04:29 PM
coeur_de_lion

coeur_de_lion

0 likes in 18 posts.

Group: User

Hello,
Is it possible to import a results from another smath studio file and then use it as a imput for the second file?
Thanks
#2 Posted: 11/27/2022 1:34:59 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Use include() function.
Learn more from Reference Book.

Regards
#3 Posted: 11/28/2022 2:13:30 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

To be ensure new users not getting confused by Jean's immorally promoted and irrelevant samples;
Question was calculating and getting result from another worksheet.
Not writing results into file getting them in same sheet.

Here is an example how include() can be used.

Regards

include_main.sm (3 KiB) downloaded 28 time(s).
include_sub.sm (2 KiB) downloaded 34 time(s).

2022-11-28_20-09.png

2022-11-28_20-09_1.png
2 users liked this post
sergio 11/28/2022 3:57:00 PM, coeur_de_lion 11/28/2022 5:25:00 PM
#4 Posted: 11/28/2022 5:25:02 PM
coeur_de_lion

coeur_de_lion

0 likes in 18 posts.

Group: User

Hello guys!
Thank for the support.
Bye
#5 Posted: 11/28/2022 6:56:54 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Is it possible to import a results from another Smath Studio file and then use it as a input for the second file?

.
You can try from the attached.
As given, re-code the the referenced include(,)
Should work as they will be from the same download directory.

Genfit Minimize Include Test.sm (58 KiB) downloaded 33 time(s).
Genfit Minimize Include.sm (31 KiB) downloaded 30 time(s).

Include(,) is more for advanced maths

#6 Posted: 11/28/2022 8:19:57 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Is it possible to import a results from another Smath Studio file and then use it as a input for the second file?


Answer is YES ... from various results.
... imported from SmathFile into main Directory.

Lum_rgba.PNG
#7 Posted: 11/29/2022 5:42:06 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

SMath studio has the built-in functions rfile() and wfile() which are used to store and retrieve expressions to/from the file system.

These native functions don't provide control as to where the files are stored (if I recall correctly, it is the settings directory (install directory if using a portable version).

Yet the Mathcad toolbox plugin provides extended functions with path control, e.g. you can enforce storage at the document directory.

2022-11-29 09_33_38-C__FHB_Software_SMath_Forumbeitrage_dd - Notepad++.png
wfile.sm (3 KiB) downloaded 25 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#8 Posted: 11/29/2022 11:04:26 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Jean, stop messing people's topics.
Post this not-related replies to samples.
  • New Posts New Posts
  • No New Posts No New Posts