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

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Albedo  
#1 Posted : 09 October 2022 06:06:17(UTC)
Albedo

Rank: Newbie

Groups: Registered
Joined: 30/08/2022(UTC)
Posts: 6
United States

I am trying to plot two temperature curves governed by two equations with one variable that changes between them and one variable that goes from an interval of 0 seconds to 263 seconds. The plot window accepts the equations, but does not plot them. Additionally, when trying to get either equation to solve, it gives an error "cannot calculate". Which is quite odd, running through it on my calculator the equations work fine.

My only lead to what is going on, is perhaps the formatting is off and SMath doesn't understand it? I tried removing all the .waters and .airs, but that didn't work. I tried removing the time units, didn't work. Tried giving time just one value, did not work. I tried removing the (x) and (t) from the equation, did not work. I followed exactly what the wiki said to do, so I am not sure why I can't get these to plots. Don't really want to have to switch over to excel to get the graphs... Attached is a screenshot of the issue and the equations.

Anyone have any ideas?

error 2.PNG

Edited by user 10 October 2022 05:57:06(UTC)  | Reason: Not specified

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

Offline Jean Giraud  
#2 Posted : 09 October 2022 12:33:33(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Too many complains in there ...
better attach the *.sm document for doctoring.
Try this ...t(x):=-ln(0.01)/x ... plot
Offline Razonar  
#3 Posted : 09 October 2022 16:20:18(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Albedo Go to Quoted Post

Anyone have any ideas?


Hi Albedo. Try to plot T(x*'s)

Best regards.
Alvaro.
Offline Albedo  
#4 Posted : 10 October 2022 02:13:49(UTC)
Albedo

Rank: Newbie

Groups: Registered
Joined: 30/08/2022(UTC)
Posts: 6
United States

Originally Posted by: Jean Giraud Go to Quoted Post
Too many complains in there ...
better attach the *.sm document for doctoring.
Try this ...t(x):=-ln(0.01)/x ... plot


Originally Posted by: Razonar Go to Quoted Post
Originally Posted by: Albedo Go to Quoted Post

Anyone have any ideas?


Hi Albedo. Try to plot T(x*'s)

Best regards.
Alvaro.


Tried to plot T(x*'s), no luck either. Attached is the .SM file if you want to try experimenting with it. Worksheet2.sm (8kb) downloaded 10 time(s).

EDIT: Found a previous post of somebody struggling to get a range variable to calculate, the solution was to vectorize the equation after to get it to form a matrix. This works and gives me the correct temperature value, but it still will not plot the functions.
error 3.PNG

Edited by user 10 October 2022 02:38:58(UTC)  | Reason: Not specified

Offline Razonar  
#5 Posted : 10 October 2022 05:42:40(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Albedo Go to Quoted Post


Tried to plot T(x*'s), no luck either. Attached is the .SM file if you want to try experimenting with it.


Hi. Try to resize the plot too.

Clipboard01.jpg

Best regards.
Alvaro.
Offline Albedo  
#6 Posted : 10 October 2022 05:56:50(UTC)
Albedo

Rank: Newbie

Groups: Registered
Joined: 30/08/2022(UTC)
Posts: 6
United States

Originally Posted by: Razonar Go to Quoted Post
Originally Posted by: Albedo Go to Quoted Post


Tried to plot T(x*'s), no luck either. Attached is the .SM file if you want to try experimenting with it.


Hi. Try to resize the plot too.

Clipboard01.jpg

Best regards.
Alvaro.


Awesome, thanks! That is exactly what I wanted. One last thing, is there a way to change the units for the y-axis? It is in Kelvin but I may want to change it to degrees C instead.
Offline oscampo  
#7 Posted : 10 October 2022 12:51:21(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Originally Posted by: Albedo Go to Quoted Post
Awesome, thanks! That is exactly what I wanted. One last thing, is there a way to change the units for the y-axis? It is in Kelvin but I may want to change it to degrees C instead.


You have these options:
Manipulate units in plot definition

Screenshot 2022-10-10 044614.png

Or...manipulate units in the function definition:

in Celsius.png

Regards,
Oscar
Offline Jean Giraud  
#8 Posted : 10 October 2022 15:41:41(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... as interpreted to be commented.
Cheers ... Jean.

Worksheet2 as interpreted.sm (19kb) downloaded 12 time(s).
Offline overlord  
#9 Posted : 10 October 2022 23:06:00(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
You can simply write as in plot below.

Just a reminder, since you are working with temperatures.
Temperature unit handling is different in SMath.
Addition of temperatures beside Kelvin should be done with delta units.
Otherwise, it will cause some unwanted complications.

Regards

2022-10-10_22-58.png
thanks 3 users thanked overlord for this useful post.
on 11/10/2022(UTC),  on 11/10/2022(UTC),  on 11/10/2022(UTC)
Offline Jean Giraud  
#10 Posted : 11 October 2022 15:02:31(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
... as interpreted to be commented.

As given, your project is not traceable.
It may be correct, but not for publishing.
Cheers ... Jean ... welcome for more.

Unsourced.PNG

Worksheet2 as interpreted.sm (35kb) downloaded 9 time(s).

Offline Jean Giraud  
#11 Posted : 12 October 2022 17:51:45(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... as it looks, Twater(t), Tair(t)
likely represent some experimental data set(s).
If so, don't hesitate to attach for a fitting session.
Of the 100's Smath fitting sessions ... NONE have resisted.
Cheers ... Jean ... maybe soon.
Users browsing this topic
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.