SMath Studio Forum
»
SMath Studio
»
Feature Requests
»
Graphing using functions as both the x and y axis.
Rank: Newbie
Groups: Registered
Joined: 11/05/2011(UTC) Posts: 3 Location: florida
|
I have found the need to graph the torque of an engine compared to the crank angle ie, torque vs. angle graph. I have been unable to figure out how make the torque equation be the y axis. I think having that ability is necessary component for software like this. I am very happy with this software but it needs to be able to have the same graphing capabilities as mathcad to be a replacement for mathcad. thanks and i look forward to hearing a responce! Justin
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 249 Location: Cali, Colombia Was thanked: 87 time(s) in 66 post(s)
|
Please, could you post your code and desired result? Thanks
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/05/2011(UTC) Posts: 3 Location: florida
|
I cannot post the code becuase I am out of the office today. However, the question is, does smath have the ability to have a user defined function for both axes of a 2d graph. For example, I want to have the x-axis (crank angle) start at 0 and go until some maximum value (which i noticed someone else has mentioned in this forum) and on the y axis be the function I created that is dependent on the x-axis.
x-axis is a range of values x=1,2..360 y-axis is a function of x y=f(x)
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 249 Location: Cali, Colombia Was thanked: 87 time(s) in 66 post(s)
|
ok, maybe that is you want:
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/05/2011(UTC) Posts: 3 Location: florida
|
This could work. But What is the point of having the subscripts of x1 and x2 under the M. That may be a dumb question but i am new to this software. And I would have thought to type Mx2 in plot. why wouldn't you? You had just put M.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 249 Location: Cali, Colombia Was thanked: 87 time(s) in 66 post(s)
|
Ok, M is a matrix where the first column are x values and the second column are y values. Observe that in "for..." cycle I assign values row by row to each column. The plot function plots the first column as "x" and the second one as "y".
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 05/11/2011(UTC) Posts: 3 Location: Hidden
|
I have tried this graphing function but i failed many times so please have a look : 1. The problem statement, all variables and given/known data plot x(t) = 10cos((pi*t)-(pi/4)) 2. Relevant equations pi/4 is the shift to the right 10 is the amplitude of the graph pi is the radian frequency 3. The attempt at a solution so i got the amplitude and shift to the right by pi/4 part but as for the radian frequency, my plot doesnt seem right. does pi mean that one cos wave occurs in a pi interval? thanks in advance 1. The problem statement, all variables and given/known data 2. Relevant equations 3. The attempt at a solution
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 249 Location: Cali, Colombia Was thanked: 87 time(s) in 66 post(s)
|
Your link send to wordpress page with no description about the function you are talking in your post, please fix it for help you...
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Feature Requests
»
Graphing using functions as both the x and y axis.
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.