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