How would you write piecewise functions in MATLAB that can take vector inputs?
Here's a function that I'm trying to write.
function y=g(x)
if x==0
y=1;
else
y=sin(x)./x;
end
If I call g([0,pi/2]), I want it to return [0,2/pi], but what I get instead is [NaN,2/pi]. I'm guessing...
OK, but can you show me how you would deduce the fact that the object is moving with circular motion, given the assumption that acceleration is perpendicular to velocity?
If the magnitude of acceleration is constant, and acceleration is perpendicular to velocity, is speed constant? Also, is speed not constant when the magnitude of acceleration is not constant? How would I show this?
I tried to do this:
If position is p(t)=(x(t),y(t)), then velocity is...
All right, my 1st-year college chemistry class is just beginning NMR, and I really have no clue what's going on. But what caught my eye was how the relative intensities in hydrogen coupling is roughly predicted by Pascal's triangle. Is this because of probability?
For a quartet, the number...