Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline tedd  
#1 Posted : 08 September 2023 19:29:14(UTC)
tedd

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.)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 08 September 2023 20:06:57(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,129
Turkey

Was thanked: 510 time(s) in 340 post(s)
When you are plotting, eliminate units.

Regards

2023-09-08_20-06.png
Offline oscampo  
#3 Posted : 08 September 2023 20:22:03(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 249
Man
Colombia
Location: Cali, Colombia

Was thanked: 87 time(s) in 66 post(s)
Another option is define the units for x:

Plot_and_units1.png

Regards,

Oscar
Users browsing this topic
Guest
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.