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

Notification

Icon
Error

Login


2 Pages12>
Options
Go to last post Go to first unread
Offline ElSid  
#1 Posted : 15 January 2021 20:14:08(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)
Graphing is NOT my forte ...
Can we plot, quickly, a function that uses two ranges? I cannot find anything in my notes that will help me Heat Capacity.sm (15kb) downloaded 14 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 15 January 2021 22:38: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)
Originally Posted by: ElSid Go to Quoted Post
Can we plot, quickly, a function that uses two ranges ?

The 2nd plot is only the XY axes system, as r and t are just multiple.
Maybe, there is a missing link ?
Cheers ... Jean

Heat Capacity.sm (23kb) downloaded 21 time(s).
Offline Ber7  
#3 Posted : 15 January 2021 23:11:14(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
I suggest one of the options
Heat Capacity M.sm (19kb) downloaded 20 time(s).

Edited by user 15 January 2021 23:15:45(UTC)  | Reason: Not specified

Offline ElSid  
#4 Posted : 15 January 2021 23:43: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,
Your file is giving me some of the dreaded "black boxes". Easy fix on the sheet. Just pointing it out as you are using "0.98.6179" and latest stable is "0.99.7610"
Thanks for your help

Ber7,
Thank you as well
Offline Jean Giraud  
#5 Posted : 16 January 2021 01:59:51(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,
Your file is giving me some of the dreaded "black boxes". Easy fix on the sheet. Just pointing it out as you are using "0.98.6179" and latest stable is "0.99.7610"
Thanks for your help

From recollection black boxes started appearing at 7610.
Reported many times by many ... not doctored then suffer.
The converse is true, i.e: 6179 open 7610 and more recent black.
Is it defendable ? ... update , you are retarded.
The truth is: it is a bug and I sign !
SS 6179 does not open black all 7610 and later.
Thanks Ber7, you got it right IMHO.
Cheers ... Jean

Offline ElSid  
#6 Posted : 18 January 2021 23:40:33(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)
Trying to take Ber7's help a little further.
Is there a way to "functionalize" the loop? I'm having an issue with UNITS (required). Not possible, because of units, is an acceptable answer. Heat Capacity Function.sm (29kb) downloaded 6 time(s).
Offline Jean Giraud  
#7 Posted : 19 January 2021 03:38:10(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
Trying to take Ber7's help a little further.
Is there a way to "functionalize" the loop?

Work sheet empty ... incorrect format.
Just re-post Ber7 document !

Offline Ber7  
#8 Posted : 19 January 2021 08:24:08(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Graph of a function with dimensionless arguments

Plot.sm (8kb) downloaded 12 time(s).
Offline ElSid  
#9 Posted : 19 January 2021 19:51:11(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)
Thank you again.

Looks like I was not clear with my question.
  1. Where you able to open my file? Jean had issues.
  2. I am trying to "generalize/discretize the loop" for other equations/functions where I have two range variables
  3. At one point, I had a third variable and that was the function/equation f(#x,#y):= ????; plot2rangevars:=(#x,#y,f(#x,#y)):={program}
Units are important as they fix the scalars ...
Re-uploaded file without a closed area to see if this helps Jean
Heat Capacity Function.sm (29kb) downloaded 6 time(s).

Edited by user 19 January 2021 20:25:29(UTC)  | Reason: Not specified

Offline Jean Giraud  
#10 Posted : 19 January 2021 21:05:57(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
Re-uploaded file without a closed area to see if this helps Jean

Just opened Ber7 document and completed to export the multiple data sets.
You can tabulate as well p2, p3, ... p6 then make a unique export table.
The meshed pivot is an exceptional tool, save it.
Cheers ... Jean

Plot Otherwise SS6179.sm (36kb) downloaded 12 time(s).
Offline Jean Giraud  
#11 Posted : 19 January 2021 23:01:14(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)
... super discretizer, algo style.

AlgoDiscretizer.PNG
Offline ElSid  
#12 Posted : 20 January 2021 03:08:42(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)
Originally Posted by: Jean Giraud Go to Quoted Post
The meshed pivot is an exceptional tool, save it.
Cheers ... Jean
Plot Otherwise SS6179.sm (36kb) downloaded 12 time(s).

You need to delete the units in the your version as BER7 had accounted for it in the function ... I know you hate units. I need to digest your follwup posted sheet
Screenshot 2021-01-19 190605.png

Offline Jean Giraud  
#13 Posted : 20 January 2021 17:49:12(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
You need to delete the units in the your version as BER7 had accounted for it in the function

You can have it otherwise as well.

Page8 Elsid.sm (60kb) downloaded 10 time(s).
Offline ElSid  
#14 Posted : 20 January 2021 22:01:51(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)
Thank you Jean,
Really helpful. Is there a reason that a legend cannot be created on the plots (X-Y Plot) that are individual colors? I realize you used the built in graph and I updated my snippet sheet with the X-Y PlotCapture.PNG
NEVERMIND ... It'S under TRACES, not LEGEND

Edited by user 20 January 2021 22:08:41(UTC)  | Reason: ANSWERED myself

Offline Jean Giraud  
#15 Posted : 21 January 2021 00:08:02(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
Thank you Jean,
Really helpful. Is there a reason that a legend cannot be created on the plots (X-Y Plot) that are individual colors? I realize you used the built in graph and I updated my snippet sheet with the X-Y Plot

X_Y plot does not recognize the multiple linterp, thus plots one trace only.
Alternately, you can add some sort of legend on the QuickPlot.
Cheers ... Jean

ElsidLegend.PNG

Page8 Elsid.sm (61kb) downloaded 8 time(s).
Offline ElSid  
#16 Posted : 21 January 2021 02:36:22(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)
Thank you Jean and Ber7.
This has turned into a rabbit hole to document (notes) how to plot an equation with two range variables with a function. Is there a way to eliminate #X1 (t1 in this example)? In short, is there a function? or way to eliminate the units from #X (t in this example). Heat Capacity Function1.sm (21kb) downloaded 26 time(s).

Didn't work how I wanted, but similar to dividing vectorized (t/Unitof(t)).

Edited by user 21 January 2021 04:23:06(UTC)  | Reason: Addded comment for UNITOF () Function

Offline Jean Giraud  
#17 Posted : 21 January 2021 04:47:42(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)
... again, document empty "Incorrect Format"
Ber7 did the 2 var collection in nested vector form,
my last version is table style, much more convivial as I'm used to do.
Units are just a pen in the ass[hole].
A good way is to work units-less, then append silent units.
Cheers ... Jean
Offline ElSid  
#18 Posted : 21 January 2021 05:09:44(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)
Not sure why you cannot open. The previous solution and worksheets work as intended. Thank you

I'm now trying to figure this out to fully make a "snippet" function as long as I define the the empirical equation divided by the units. It would have multiple applications for me.
Offline Ber7  
#19 Posted : 21 January 2021 14:48:58(UTC)
Ber7


Rank: Advanced Member

Groups: Registered
Joined: 15/07/2010(UTC)
Posts: 437
Man
Israel
Location: Beer-Sheva

Was thanked: 520 time(s) in 288 post(s)
Graph with legend

Ps.sm (8kb) downloaded 8 time(s).
Offline ElSid  
#20 Posted : 21 January 2021 17:17:04(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)
Thank you guys. I should have just deleted the question when I figured out the legend issue in lieu of answering myself. As mentioned above, it was under TRACES, not LEGEND, in the X-Y Plot

Were you able to open up my last attachment? Jean had issues again Sad
This is my current hang up with the units

Edited by user 21 January 2021 17:28:17(UTC)  | Reason: Not specified

Users browsing this topic
Guest
2 Pages12>
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.