Functions not Plotting in Graph

Functions not Plotting in Graph - Two functions will not plot. - Сообщения

#1 Опубликовано: 09.10.2022 00:06:17
Jarod

Jarod

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

Группа: User

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
#2 Опубликовано: 09.10.2022 06:33:33
Jean Giraud

Jean Giraud

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

Группа: User

Too many complains in there ...
better attach the *.sm document for doctoring.
Try this ...t(x):=-ln(0.01)/x ... plot
#3 Опубликовано: 09.10.2022 10:20:18
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Wrote


Anyone have any ideas?



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

Best regards.
Alvaro.
#4 Опубликовано: 09.10.2022 20:13:49
Jarod

Jarod

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

Группа: User

Wrote

Too many complains in there ...
better attach the *.sm document for doctoring.
Try this ...t(x):=-ln(0.01)/x ... plot



Wrote

Wrote


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 (7 КиБ) скачан 55 раз(а).

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
#5 Опубликовано: 09.10.2022 23:42:40
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Wrote



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.
#6 Опубликовано: 09.10.2022 23:56:50
Jarod

Jarod

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

Группа: User

Wrote

Wrote



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.
#7 Опубликовано: 10.10.2022 06:51:21
Oscar Campo

Oscar Campo

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

Группа: Moderator

Wrote

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
#8 Опубликовано: 10.10.2022 09:41:41
Jean Giraud

Jean Giraud

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

Группа: User

... as interpreted to be commented.
Cheers ... Jean.

Worksheet2 as interpreted.sm (18 КиБ) скачан 54 раз(а).
#9 Опубликовано: 10.10.2022 17:06:00
overlord

overlord

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

Группа: Moderator

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
3 пользователям понравился этот пост
Alvaro Diaz Falconi 11.10.2022 01:42:00, sergio 11.10.2022 05:05:00, Oscar Campo 11.10.2022 07:28:00
#10 Опубликовано: 11.10.2022 09:02:31
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

... 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 (34 КиБ) скачан 50 раз(а).

#11 Опубликовано: 12.10.2022 11:51:45
Jean Giraud

Jean Giraud

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

Группа: User

... 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений