Import results from another smath studio file

Import results from another smath studio file - Poruke

#1 Objavljeno: 27. 11. 2022. 13:04:29
coeur_de_lion

coeur_de_lion

0 svidjanja u 18 postova.

Grupa: 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 Objavljeno: 27. 11. 2022. 13:34:59
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

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

Regards
#3 Objavljeno: 28. 11. 2022. 14:13:30
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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,79 KiB) preuzeto 1374 put(ova).
include_sub.sm (2,41 KiB) preuzeto 1454 put(ova).

2022-11-28_20-09.png

2022-11-28_20-09_1.png
2 korisnika je svidelo ovu objavu
sergio 28. 11. 2022. 15:57:00, coeur_de_lion 28. 11. 2022. 17:25:00
#4 Objavljeno: 28. 11. 2022. 17:25:02
coeur_de_lion

coeur_de_lion

0 svidjanja u 18 postova.

Grupa: User

Hello guys!
Thank for the support.
Bye
#5 Objavljeno: 28. 11. 2022. 18:56:54
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,93 KiB) preuzeto 1383 put(ova).
Genfit Minimize Include.sm (31,52 KiB) preuzeto 1441 put(ova).

Include(,) is more for advanced maths

#6 Objavljeno: 28. 11. 2022. 20:19:57
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 29. 11. 2022. 05:42:06
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: 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,52 KiB) preuzeto 1408 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 Objavljeno: 29. 11. 2022. 11:04:26
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Jean, stop messing people's topics.
Post this not-related replies to samples.
  • Novi postovi
  • Nema novih postova