Google search results show my title incorrectly twice
Title tag different from title appearing in Google?
Chapter on the right side - How to turn it off? Ball motion with air resistance coupled differential equation for fourth-order Runge-Kutta I've created a MATLAB function for solving coupled differential equation with the fourth-order Runge-Kutta method based on what is provided  (Simultaneous Equations of First Order). Here the function:  function [y] = rk4_c(f, g, h, x, y, z, n) % Runge-Kutta % Implementation of the fourth-order method for coupled equations % h = dt % x is the time here  for ii=1:(n-1)     k1 = h * f(x(ii), y(ii), z(ii));     l1 = h * g(x(ii), y(ii), z(ii));     k2 = h * f(x(ii) + 0.5*h, y(ii) + 0.5*k1, z(ii) + 0.5*l1);     l2 = h * g(x(ii) + 0.5*h, y(ii) + 0.5*k1, z(ii) + 0.5*l1);     k3 = h * f(x(ii) + 0.5*h, y(ii) + 0.5*k2, z(ii) + 0.5*l2);     l3 = h * g(x(ii) + 0.5*h, y(ii) + 0.5*k2, z(ii) + 0.5*l2);     k4 = h * f(x(ii) + h, y(ii) + k3, z(ii) + l3);     l4 = h * g(x(ii) + h, y(ii) + k3, z(ii) + l3);     y(ii+1) = y(ii) + (1/6)*(k1 + 2*k2 + 2*k3 + k4);     z(ii+1) = z(ii) + (1/6)*(l1 + 2*l2 + 2*l3 + l4); end   I would like to use this function for solving motion equations for a ball with air resistance. So starting with the basic equations (I hope they are correct): $$md^2x/dt^2 = F_{D_x}$$ and $$md^2y/dt^2 = F_{D_y}-mg$$ with $$F_{D_x} = -Dvvcos(\theta)$$ and $$F_{D_y} = -Dvvsin(\theta)$$ where $D$ is a drag coefficient. From my understanding, and from what I read, both second-order equation can be converted to two coupled equations that could be used with my coupled Runge-Kutta method function. Can someone help me understand how to convert my equation to a set of coupled equations that could be used with my MATLAB function?  EDIT  I was able to use my rk4_c function, however it only works for solving the velocities. I'm now trying to see how I could solve for the positions x and y. I'm kind of learning about Runge-Kutta methods at the same time, so sorry for the questions that may sound trivials.  % Runge Kutta code to solve projectile motion with quadratic drag % dVx/dt = -(D/m)*vx*sqrt(vx^2+vy^2) % dVy/dt = -(D/m)*vy*sqrt(vx^2+vy^2) - g  clc clear all  % Constant D = 0.24; % m = 2; % kg g = 9.80665; % m/s^2  % Define function handles fVx = @(t,vx,vy) -(D/m)*vx*sqrt(vx^2+vy^2); fVy = @(t,vx,vy) -(D/m)*vy*sqrt(vx^2+vy^2) - g;  % Initial conditions v0 = 200; % m/s theta = 30*pi/180; % rad t(1) = 0; vx(1) = v0*cos(theta); vy(1) = v0*sin(theta);  % Step size h = 0.01; % s tFinal = 2; N = ceil(tFinal/h);  % RK4 simultaneous coupled loop for ii = 1:N     % Update time     t(ii+1) = t(ii) + h;      % Update vx and vy     k1 = h * fVx(t(ii), vx(ii), vy(ii));     l1 = h * fVy(t(ii), vx(ii), vy(ii));     k2 = h * fVx(t(ii) + 0.5*h, vx(ii) + 0.5*k1, vy(ii) + 0.5*l1);     l2 = h * fVy(t(ii) + 0.5*h, vx(ii) + 0.5*k1, vy(ii) + 0.5*l1);     k3 = h * fVx(t(ii) + 0.5*h, vx(ii) + 0.5*k2, vy(ii) + 0.5*l2);     l3 = h * fVy(t(ii) + 0.5*h, vx(ii) + 0.5*k2, vy(ii) + 0.5*l2);     k4 = h * fVx(t(ii) + h, vx(ii) + k3, vy(ii) + l3);     l4 = h * fVy(t(ii) + h, vx(ii) + k3, vy(ii) + l3);     vx(ii+1) = vx(ii) + (1/6)*(k1 + 2*k2 + 2*k3 + k4);     vy(ii+1) = vy(ii) + (1/6)*(l1 + 2*l2 + 2*l3 + l4); end  % Plot the solution figure(1) plot(t, vx, t,vy) xlabel('Time (s)') ylabel('Velocities (m/s)') legend('Vx', 'Vy') Integrate JavaScript in JSF composite component, the clean way How many $4$ digit even numbers have all $4$ digits distinct ?   This question has been asked if we replace even with positive.   I was solving this Problem like: For first position $1-9$ (No $0$) for next $0-9$ (leaving out the digit which has been choose) for next $0-9$ (leaving out $2$ digits), but on last digit I get stuck. From what I should choose. Will it be $0, 2, 4, 6, 8$, because number needs to be even? How should I solve it? Spider Identification Illinois I noticed a really huge, beautiful web on my porch last week, and tonight, I discovered its resident. I'm thinking it's an Araneus diadematus (Cross Orbweaver), but I was hoping for some confirmation.   Can anyone confirm this or offer a better suggestion? permanent hat-like thing? I really like how, in the winter bash, there are hats. They are pretty cool and actually encourage me to get badges, something I didn't care about before. I think there should be something like this, but all year round, to encourage people to get badges. Badges, to me, seem currently pretty useless and I never want to get any because...there is no good reason to. Hats: well, hats are just awesome Browsing folders with more than 100000 images Complete view of where the PATH variable is set in bash When using the web interface, there is a favorite tags section where you can select a list of tags that you view most frequently.  This has become a cornerstone of my normal  on stack overflow, but it doesn't look like this is possible in the Android app.  There should be a mechanism by which you can add some favorite tags to the nav bar. Clicking these tags will take you to a list of similarly tagged questions.  Perhaps also the feed should include a section for each favorite tag.  These would be presented on their own, much like how "hot new questions" and "new unanswered questions" appear in the feed.  Perhaps something like this: How to prove this is a metric? I have 2 distance functions $d(x,y)=|x^2-y^2|$ and $d(x,y)=|x^3-y^3|$ and I am trying to prove that they are metrics on $\mathbb R$, or give a counterexample that they are not metrics on $\mathbb R$.  I managed to prove the first 3 properties for the 2nd function namely:   $d(x,y)\ge0$ $d(x,y)=0$ iff $x=y$ $d(x,y)=d(y,x)$   and I now have shown that the 1st function is not a metric.  But for the triangle inequality property, $d(x,y)\le d(x,z) + d(z,y)$, Im stuck on it. How would go about proving it for $d(x,y)=|x^3-y^3|$? Thanks. What font is used in this image? Can gravity be interpreted as the acceleration of spacetime towards an object? Greetings StackExchange!  We were having a conversation with a peer about stupid ways of interpreting theories. We would go to and fro with an interpretations, but we would always find a way to disprove them. There was one, however, that we couldn't refute:  Gravity on a plane in a bidimensional space can be interpreted as the acceleration of spacetime towards an object.   We tried to invalidate in saying that the inertial mass and gravitational mass would be different, thus violating GR, but after some thought this couldn't be. The gravitational mass would accelerate spacetime towards it. If that object we were to be pushed, the pulling of spacetime would make it difficult for it to move.   We know for a fact this can't be true, and we would greatly appreciate any refutation of this thought. I can clarify if needed, or do a sketch. I apologise in advance as I'm not a native speaker. Tools to get a pictorial function call graph of code I have a large work space which has many source files of C code. Although I can see the functions called from a function in MS VS2005 using the Object browser, and in MSVC 6.0 also, this only shows functions called from a particular function in a non-graphical kind of display. Additionally, it does not show the function called starting from say main(), and then the functions called from it, and so on, deeper inside to the leaf level function.  I need a tool which will give me a function call graph pictorially with functions callee and caller connected by arrows or something like that, starting from main() to the last level of function, or at least showing a call graph of all functions in one C source file pictorially. It would be great if I could print this graph.  Any good tools to do that (need not be free tools)? Remap Caps Lock to Ctrl-b 'took several years to be built' or 'took several years to build' – which one is correct? Which one of these sentences is correct?  The palace took several years to build.  or  The palace took several years to be built.  I heard the first one while I was watching Discovery Channel and I think it is not correct because the palace did not build on its own – someone had to build it. So the passive form seems the correct sentence. Is there any way to hide your Steam status from others? Is there any way to prevent others from seeing your Steam status without removing them as a friend?   Let's say I want to play Borderlands 2 without letting some friends know. Is there any way to hide my status to prevent them from knowing I'm playing it?  Basically, what I'm asking if Steam has an "Appear Offline" option. How does an Intelligence penalty affect skill points when character-building/leveling-up? Highlighted source code inline with Latex/Minted? Equivalence Relation with dividing x and y integers Define $x\sim y$ means 5 divides $(x - y)$ for $x$ and $y$ integers. Show that is an equivalence relation.  Equivalence relation means it satisfies reflexity, symmetry, and transitivity.  reflexive: $x\sim x$ means 5 divides $x$  symmetry: $x \sim y \rightarrow y\sim x$ means 5 divides $x - y$ and 5 divides $y - x$: $$5/(x - y) = 5/(y - x)$$ so symmetry is satisfied.  I am not sure if I am right here and I am lost on how to prove it is transitive any suggestions would be greatly appreciated Why doesn't grep using pipe work here?