SMath Studio Forum
»
SMath Studio
»
Questions
»
Issue plotting function with units
Rank: Newbie
Groups: Registered
Joined: 28/01/2012(UTC) Posts: 9 Location: Canada
|
I'm trying to plot a function with units. The function is:
f(x)=k.2*x^2+k.4*x^4
And the units are:
k.2 in N/(m/s)^2 k.4 in N/(m/s)^4 x in m/s
So, the function evaluates to units of N.
I can plot each component of the function separately. I.e., I can plot k.2*x^2 or I can plot k.4*x^4. But, when I try to plot the entire function (k.2*x^2+k.4*x^4), no curve appears. How do I fix that?
(For anyone who's curious, this is a hypothetical drag curve for a full-displacement hull.)
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,129 Was thanked: 510 time(s) in 340 post(s)
|
When you are plotting, eliminate units. Regards
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 249 Location: Cali, Colombia Was thanked: 87 time(s) in 66 post(s)
|
Another option is define the units for x: Regards, Oscar
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Issue plotting function with units
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.