1
$\begingroup$

Mathematica works well with many kind of plots, but I cant figure out how to plot conic sections with rotated axis. For example "plot $y = (3x + \sqrt{x(16-7x)})/4, y = (3x - \sqrt{x(16-7x)})/4$" will not give me an ellipse, but gives me a zigzag mix of real and imaginary parts lines. How do I get rotated conic? Can you provide examples of hyperbola and parabola also?

Here a stub to meet demands of code formatting

Plot[y /. Solve[y == (3 x + sqrt (x (16 - 7 x)))/4], {x, -20, 20}]
$\endgroup$

closed as off-topic by Artes, Kuba, MarcoB, m_goldberg, user9660 Jan 28 '16 at 13:28

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Artes, m_goldberg, Community
  • "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – Kuba, MarcoB
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    $\begingroup$ Your code isn't useable as is, try to copy it directly from your notebook (I assume you would see the error with sqrt instead of Sqrt). Also, your Solve isn't formatted correctly, you already have it solved for y. $\endgroup$ – Jason B. Jan 28 '16 at 11:00
  • $\begingroup$ I recommend to play around with parametric representations of conic sections $\endgroup$ – Artes Jan 28 '16 at 11:08
2
$\begingroup$

Your ellipse plots pretty easily if you get the syntax right.

Plot[{(3 x + Sqrt[x (16 - 7 x)])/4, (3 x - Sqrt[x (16 - 7 x)])/4}, {x, 0, 2.5}]

plot

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.