Import results from another smath studio file

Import results from another smath studio file - Сообщения

#1 Опубликовано: 27.11.2022 13:04:29
coeur_de_lion

coeur_de_lion

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

Группа: 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 Опубликовано: 27.11.2022 13:34:59
overlord

overlord

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

Группа: Moderator

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

Regards
#3 Опубликовано: 28.11.2022 14:13:30
overlord

overlord

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

Группа: 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 КиБ) скачан 27 раз(а).
include_sub.sm (2 КиБ) скачан 30 раз(а).

2022-11-28_20-09.png

2022-11-28_20-09_1.png
2 пользователям понравился этот пост
sergio 28.11.2022 15:57:00, coeur_de_lion 28.11.2022 17:25:00
#4 Опубликовано: 28.11.2022 17:25:02
coeur_de_lion

coeur_de_lion

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

Группа: User

Hello guys!
Thank for the support.
Bye
#5 Опубликовано: 28.11.2022 18:56:54
Jean Giraud

Jean Giraud

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

Группа: 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 КиБ) скачан 30 раз(а).
Genfit Minimize Include.sm (31 КиБ) скачан 28 раз(а).

Include(,) is more for advanced maths

#6 Опубликовано: 28.11.2022 20:19:57
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 29.11.2022 05:42:06
Martin Kraska

Martin Kraska

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

Группа: 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 КиБ) скачан 22 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#8 Опубликовано: 29.11.2022 11:04:26
overlord

overlord

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

Группа: Moderator

Jean, stop messing people's topics.
Post this not-related replies to samples.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений