1 Pages (8 items)
Plotting with a step - Messages
#1 Posted: 10/21/2021 7:28:01 AM
Hello!
I have an equation y(x) that only produces results when x is an integer. When x is not an integer, like 4.5, the answer has imaginary numbers. I would like to plot this equation, but right now it does not give me a result. I think the problem is because of the imaginary numbers which is why I am trying to plot only when x is an integer. How could you do this in SMath?
I have an equation y(x) that only produces results when x is an integer. When x is not an integer, like 4.5, the answer has imaginary numbers. I would like to plot this equation, but right now it does not give me a result. I think the problem is because of the imaginary numbers which is why I am trying to plot only when x is an integer. How could you do this in SMath?
#2 Posted: 10/21/2021 3:36:59 PM
Attached the file. The function I wish to plot is Ts(t). Right now it only plots the values when x<=0.
Steel temperature.sm (15 KiB) downloaded 38 time(s).
Steel temperature.sm (15 KiB) downloaded 38 time(s).
#3 Posted: 10/21/2021 6:26:29 PM
WroteAttached the file. The function I wish to plot is Ts(t). Right now it only plots the values when x<=0.
Steel temperature.sm (15 KiB) downloaded 38 time(s).
Function has a recursion, it won't allow to continue from a certain point.
And I am pretty sure this plot is not what you want.
Try to eliminate the recursion by a different algorithm.
Maybe you should store numbers in a matrix and plot them later.
Regards
#4 Posted: 10/21/2021 7:40:41 PM
Wrote...
Maybe you should store numbers in a matrix and plot them later.
Following your suggestion.
Steel temperature.sm (21 KiB) downloaded 41 time(s).
Best regards
Alvaro.
#5 Posted: 10/21/2021 9:14:22 PM
WroteFollowing your suggestion.
Steel temperature.sm (21 KiB) downloaded 41 time(s).
While me being so lazy you already did it.
Kudos, +1
#6 Posted: 10/22/2021 6:46:56 AM
Wow, didn't expect this to be so complicated. Thank you, I got it working now 

#7 Posted: 10/22/2021 8:18:20 AM
WroteWow, didn't expect this to be so complicated. Thank you, I got it working now
Thanks for the project, saved in Project file.
Thanks Alvaro
Take care ... Jean
Project Steel temperature (Doctored Alvaro).sm (18 KiB) downloaded 36 time(s).
#8 Posted: 10/22/2021 5:57:38 PM
WroteWow, didn't expect this to be so complicated. Thank you, I got it working now
Some functions are complicated, some are not.
And there are SMath differences to other software.
Experienced users shall try to solve the problem.
Feel free to ask the forum.
Regards
1 Pages (8 items)
-
New Posts
-
No New Posts