I decide to log into the KSP forums after many many months of inactivity, and it's @Vanamonde who wants to pull me out of retirement!
I'll go ahead and try to clean up the original post the best I can.
Assuming you can create maneuver nodes, there is a much MUCH easier way to accomplish an interplanetary trajectory:
1.) While orbiting Kerbin (I use a probe for this), create a maneuver which will take you juste barely out of Kerbin's sphere of influence (theoretically, you're exiting the SOI with zero velocity, achieving the same orbit as Kerbin around the sun).
2.) From the orbit around the sun, create a maneuver for a transfer orbit to whatever you want to intercept. Manipulate it until you get an intersection.
3.) Timewarp until Kerbin is at the maneuver node created in step 2.
4.) With the craft you are going to be doing the stuff with the other planet you want to go to, create a maneuver node for an ejection from Kerbin's orbit (in either the planet's prograde or retrograde direction) and increase the velocity until an intersection is made with the target planet. You will have to adjust in the normal or anti-normal direction for planetary orbits which do not lie on the origin planet's orbital plane.
5.) Execute maneuver and later do whatever slight corrections are required.
Any such undertakings are at your own risk. Upon attempting the above steps, you agree to not hold Kosmo-not liable for any damages resulting in the loss or destruction of spacecraft, kerbals, or ego.
*update* I think all the equations in the OP are fixed now.