Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


8 Pages«<34567>»
Options
Go to last post Go to first unread
Offline RFreund  
#81 Posted : 25 October 2015 20:29:44(UTC)
RFreund


Rank: Advanced Member

Groups: Registered
Joined: 25/09/2013(UTC)
Posts: 325
United States
Location: IL

Was thanked: 19 time(s) in 17 post(s)
@Jean

Quote:
In ~ 125000 exchanges Mathsoft Collaboratory I bet < 12 work sheets were exchanged with reference to other work sheet. It might be useful in Smath from prime consideration but in fact it is limited to specific functions, some type of program that would be cumbersome otherwise ... but the collapsed area is a much better approach as it keeps the document stand alone


Could you rephrase or elaborate on this. I'm curious to know what you mean here.
Offline RFreund  
#82 Posted : 13 January 2016 20:38:39(UTC)
RFreund


Rank: Advanced Member

Groups: Registered
Joined: 25/09/2013(UTC)
Posts: 325
United States
Location: IL

Was thanked: 19 time(s) in 17 post(s)
I'm trying to understand the "rules" of include.

Can the include function, include variables / functions from the following (my result in parenthesis):

1. Variables defined by a Combobox List (NO)
2. Variables defined within an area (Yes)
3. Variables defined in an area within an area (or within multiple areas) (NO)
4. Functions - Same rules as Variables
5. Variables defined by variables that are not transferable. Meaning that if you have X=2*Y and Y is inside of an area which is inside of another area then X will not be defined in you sheet which is trying to include the variable X. (NO)
6. Variables defined by functions that are not transferable. Meaning that if you have f(X,Y)=x*y this function is inside of an area which is inside of another area then any variables defined by the function f(X,Y) will not be defined in the sheet which is trying to include those variables. (NO)

In my opinion, I like this except for #1 (seems odd). This provides some control of variables. Additionally I think that all functions can be in their own areas, so they can be collapsed (ideally all functions would be located at the top of the page in each of their respective areas).

Thanks again for this Function!

Let me know your thoughts on updating the Combobox List.

Offline Jean Giraud  
#83 Posted : 14 January 2016 05:22:56(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
@Jean

Quote:
In ~ 125000 exchanges Mathsoft Collaboratory I bet < 12 work sheets were exchanged with reference to other work sheet. It might be useful in Smath from prime consideration but in fact it is limited to specific functions, some type of program that would be cumbersome otherwise ... but the collapsed area is a much better approach as it keeps the document stand alone


Could you rephrase or elaborate on this. I'm curious to know what you mean here.

_______________________________________

include("string" ) - include sm-file .... as it looks: same as Mathcad/Mathsoft "reference"
i.e: reference to a work sheet that contains the program to be used elsewhere in any work sheet.

In all my visits to this forum, I have no recollection collabs posting a long valid work sheet
doing something useful in reference to a master "include'.

Mathcad/Mathsoft distributed many e-books, some with very few "reference"
One of them was so gigantic "Creating Amazing Images" that the bright Norvegian made it OTHERWISE

His 15 MB e-book is all in "globally defined mode". So, any specific work sheet [project] is also
globally defined ... works magic. Smath does not have the global definition. Sometimes I wish Smath
have global definition. So, you can define parameters at the point of use, past the function
definition. The way around is to include the parameters in the function definiion itself.
Having it: I would use occasionaly, I don't have: fine [not worth a cry].

You mention "Combobox". What could that be ? In 15 years of intensive forums [Process Control
and Instrumentation, Mathematica, Math forum, OriginLab, Mathsoft, now Smath] ... I don't even
imagine what "Combobox" would do for me because what that is ?

The Smath "compactor" enables to collect plotting arguments [I have not used more than 8]
The real limit ? Don't kow.

Using Smath correctly is the key. When you have problem: attach your work sheet,
Many collab will doctor your project. Your function f(x,y):= somtehing ... has no plotting interest
It must have parameters . Smath Maxima X_Y plot is gorgeous on that for plotting contours,
as many as you wish. This fall, I posted "Doublet" a great piece of work based on the "compactor".

What was your question/problem ?

An area within an area is like the pigeon pregant of the mouse, the mouse pregnant of the elephant.

Jean

Edited by moderator 03 February 2016 11:16:44(UTC)  | Reason: Not specified

Offline RFreund  
#84 Posted : 14 January 2016 06:35:32(UTC)
RFreund


Rank: Advanced Member

Groups: Registered
Joined: 25/09/2013(UTC)
Posts: 325
United States
Location: IL

Was thanked: 19 time(s) in 17 post(s)
@Jean -

First let me say, I love your enthusiasm and your metaphor/comparisons.
I will try to address some of your questions:
Combobox is a plugin which allows the use of a 'drop down' selection box inside the work sheet.

As far as using 'include' goes - I like the idea of connecting calculations that are part of a project. For example in one work sheet you define gravity loads in another you define lateral loads. Then you have a steel beam design file where you include the two 'load' files you previously created. This way if you change the loads, everything is 'automatically' updated.


I apologize for my poor use of an example function. I was just trying to demonstrate when 'include' actually includes something and when it does not. I will have to check out the Doublet.

So my question/problem is really just being able to use the combobox with the include function and trying to provide some information to others that are using include based on what I have found.

Thanks for the reply Jean
Offline RFreund  
#85 Posted : 03 February 2016 05:20:02(UTC)
RFreund


Rank: Advanced Member

Groups: Registered
Joined: 25/09/2013(UTC)
Posts: 325
United States
Location: IL

Was thanked: 19 time(s) in 17 post(s)
Uni - is it possible for include() to allow the use of the combobox region?

Thanks!
Offline uni  
#86 Posted : 03 February 2016 08:02:24(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: RFreund Go to Quoted Post
Uni - is it possible for include() to allow the use of the combobox region?

No, it is impossible. As I explained before, include() can use only static content (definitions), because it based on store.AddDefinition() method which can't load visual plugins. These data must be loaded by another way (Worksheet object). It is more complicated and Andrey can't do it now. In other words, for the full inclusion of other files need to significantly alter the function. And I'm not sure that I will succeed to do this.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline RFreund  
#87 Posted : 04 February 2016 22:31:40(UTC)
RFreund


Rank: Advanced Member

Groups: Registered
Joined: 25/09/2013(UTC)
Posts: 325
United States
Location: IL

Was thanked: 19 time(s) in 17 post(s)
I see, thanks Uni. Maybe someday.
As you can see from some of the other threads I do think include() is very useful for any real project application.
Offline Jean Giraud  
#88 Posted : 05 February 2016 08:50:43(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Well ! pretty much left over "ComboBox".
On the place holder, I can plug the program bar, extend down
plug some functions f(x):= ln(x) ....
When getting out the CombBox: it crashes Smath ... repeatdidly.

Cheers, Jean
Offline Jean Giraud  
#89 Posted : 05 February 2016 10:13:05(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... "ComboBox" can't be be worst !
Open/Open/Open ... combo => crash/crash/crash.
What to do: nothing but go to hell and go to bed.

Jean
Offline uni  
#90 Posted : 05 February 2016 11:55:01(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Added support for nested areas.

Originally Posted by: RFreund Go to Quoted Post
I'm trying to understand the "rules" of include.

Can the include function, include variables / functions from the following (my result in parenthesis):

1. Variables defined by a Combobox List (NO)
2. Variables defined within an area (Yes)
3. Variables defined in an area within an area (or within multiple areas) (NO)
4. Functions - Same rules as Variables
5. Variables defined by variables that are not transferable. Meaning that if you have X=2*Y and Y is inside of an area which is inside of another area then X will not be defined in you sheet which is trying to include the variable X. (NO)
6. Variables defined by functions that are not transferable. Meaning that if you have f(X,Y)=x*y this function is inside of an area which is inside of another area then any variables defined by the function f(X,Y) will not be defined in the sheet which is trying to include those variables. (NO)


Try now.

Edited by user 05 February 2016 12:16:24(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 06/02/2016(UTC)
Offline uni  
#91 Posted : 08 February 2016 14:49:03(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Updated. Now function can catch deep recursion. This feature is not fully tested.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 08/02/2016(UTC)
Offline alyles  
#92 Posted : 14 April 2016 20:32:29(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
Is it possible for descriptions to be passed with include()?

See example

Untitled.png
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
thanks 1 user thanked alyles for this useful post.
on 15/04/2016(UTC)
Offline uni  
#93 Posted : 15 April 2016 08:07:43(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
No, now this is impossible. Function (AddDefinition() from SMath core lib ) which does the main job dosn't know about the description field for the definition. So I can't add this data.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline Jean Giraud  
#94 Posted : 15 April 2016 08:16:00(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
"include" has been discussed ad noseum. "Combox box" crashes Smath 5346.
Include" does not work either. What is "combobox " for ?

Let test you pretention outside of "combobox": download both work sheets.
The work sheet "Genfit Algo Include" is the progrmmed algorithm that
I would like to be live in the work sheet "Genfit Algo Include Test".

There is nothing to do, just wait until you get a plot [~ 1 second].
The error message says "file not found" ... "include" does not fetche
the algorithm computation from the referenced file, even if the referenced
algo is open in a separate Smath instance.

It would be useful to me, simplifying the data modeling.

Jean

Genfit Algo Include.sm (14kb) downloaded 43 time(s).

Genfit Algo Include Test.sm (18kb) downloaded 38 time(s).

Offline uni  
#95 Posted : 15 April 2016 08:53:27(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Try this Genfit Algo Include Test.pdf (34kb) downloaded 59 time(s).
Russia ☭ forever
Viacheslav N. Mezentsev
Offline mikekaganski  
#96 Posted : 15 April 2016 08:54:42(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Let test you pretention outside of "combobox": download both work sheets.
The work sheet "Genfit Algo Include" is the progrmmed algorithm that
I would like to be live in the work sheet "Genfit Algo Include Test".

There is nothing to do, just wait until you get a plot [~ 1 second].
The error message says "file not found" ... "include" does not fetche
the algorithm computation from the referenced file, even if the referenced
algo is open in a separate Smath instance.


Don't forget the file's extension: "path\to\file.sm"

Genfit Algo Include Test.sm (18kb) downloaded 46 time(s).
Best regards,
Mike Kaganski
Offline ElSid  
#97 Posted : 15 April 2016 15:35:35(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Using Jean's files in the same directory, I updated to Mike's sheet and compared it to UNI's pdf ... I still have an error in the re-definition of BETA. Using latest SMath and plugins. BETA.PNG
Offline Jean Giraud  
#98 Posted : 15 April 2016 19:35:38(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Thanks Uni, Mike ... works fine. Press = after "Include" to activate.
Elid: try again

Jean
Offline ElSid  
#99 Posted : 15 April 2016 20:26:39(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Jean,
I have the equal sign. It's in Mikes updated sheet. The Beta in the screen shot I took shows 4; whereas Uni's PDF shows a 4x1 matrix (array)
Offline Jean Giraud  
#100 Posted : 15 April 2016 23:45:23(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ElSid Go to Quoted Post
Jean,
I have the equal sign.It's in Mikes updated sheet.The Beta in the screen shot I took shows 4; whereas Uni's PDF shows a 4x1 matrix (array)
.

You may have to put both work sheets in your Smath working directory.
If you read 4, instead of 1: it does not find the work sheet in question.
If it does not work: the problem is specific to your instalation.
After the wife and the kids, consider re-installing Smath.

Jean

Users browsing this topic
Guest
Similar Topics
Display formula stored in "Included" SMath file (Questions)
by faruk 10/03/2024 23:36:28(UTC)
include files @ startup (Questions)
by charlamb 10/05/2023 23:44:05(UTC)
Adidas include guaranteed with the 12 months (Bugs & Problems)
by Guest 11/12/2020 07:02:55(UTC)
include function issues (Questions)
by jrufener 01/06/2019 21:44:47(UTC)
[include plugin] missing LinqBridge.dll error in SMath Viewer executables (Bugs & Problems)
by resist 24/11/2017 18:07:37(UTC)
Include [User Program Function] (Feature Requests)
by Jean Giraud 16/04/2016 15:29:14(UTC)
"include" plugin: default directory setting (Feature Requests)
by mikekaganski 04/04/2016 07:19:58(UTC)
Include and Combobox Region (Questions)
by RFreund 01/03/2016 02:18:21(UTC)
include does not seem to work anymore (Bugs & Problems)
by Tinu 23/06/2014 09:56:03(UTC)
Even so Kobe Shoes includes by no means offered " up " their particular method to Nike Air condition (Questions)
by gladys 07/06/2014 05:27:07(UTC)
Include Hook Sections (Feature Requests)
by sublim21 29/05/2013 21:23:33(UTC)
Include ksi and ksf in next release (Feature Requests)
by TheWizEd 17/07/2010 22:42:11(UTC)
Include function (Feature Requests)
by LordMike 24/10/2009 05:15:45(UTC)
8 Pages«<34567>»
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.