I have the notebook below which produces the correct numerical output but the CForm function doesn't appear as though it is working correctly (or I don't know how to interpret the Slot function within Out[4]/CForm.) I'm trying to get something I can stick into c++. How should this be parsed and/or is there a way to get Mathematica to output a more straightforward CForm (complex numbers are fine if needed.)
Edit: Different from that suggested.

ToRadicals[]to get a "more traditional" expression, which may or may not be numerically sound when you finally embed it in C++. Those coefficients look huge, so you might also want to do a preliminary rescaling. Anyway, as it stands, you don't have anything C++-ready even with that Mathematica result, and you have more work to do. – J. M.'s missing motivation Jan 21 '17 at 04:39ToRadicals[]doesn't seem to get there - even just running that through with the variablesdandvdefined comes in pretty significantly off of the correct value. – CoryG Jan 21 '17 at 07:55x10^7off all the coefficients worked. Are you able to explain why that worked? I'm not typically into math beyond getting through it for engineering issues but this has me a bit curious of the logic behind it. Is it just a rounding issue? – CoryG Jan 21 '17 at 09:30Solve[(Pi/3) (y^2) (((3/2) d) - y) == v && d > 0 && y > 0 && v > 0 && v > y && v > d && y <= d, {y}, Reals] // ToRadicals-- Exact3/2vs. approximate1.5-- People here generally like users to post code as Mathematica code instead of images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. You may find this this meta Q&A helpful -- which is why I was slow to try it, what with a regular job and all.... :) – Michael E2 Jan 21 '17 at 14:08Roots[1/3 Pi (1.5 d - y) y^2 == v, y]and then taking the equation for the third root. – CoryG Jan 22 '17 at 04:01