SMath Studio Forum
»
SMath Studio
»
Questions
»
Functions not Plotting in Graph
Rank: Newbie
Groups: Registered
Joined: 30/08/2022(UTC) Posts: 6
|
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? Edited by user 10 October 2022 05:57:06(UTC)
| Reason: Not specified
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Too many complains in there ... better attach the *.sm document for doctoring. Try this ...t(x):=-ln(0.01)/x ... plot
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Albedo Anyone have any ideas?
Hi Albedo. Try to plot T(x*'s) Best regards. Alvaro.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 30/08/2022(UTC) Posts: 6
|
Originally Posted by: Jean Giraud 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 Originally Posted by: Albedo 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. Edited by user 10 October 2022 02:38:58(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Albedo
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. Best regards. Alvaro.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 30/08/2022(UTC) Posts: 6
|
Originally Posted by: Razonar Originally Posted by: Albedo
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. 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Originally Posted by: Albedo 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 Or...manipulate units in the function definition: Regards, Oscar
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,126 Was thanked: 507 time(s) in 338 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
|
3 users thanked overlord for this useful post.
|
on 11/10/2022(UTC), on 11/10/2022(UTC), on 11/10/2022(UTC)
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Jean Giraud ... 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. Worksheet2 as interpreted.sm (35kb) downloaded 9 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 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.
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Functions not Plotting in Graph
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.