Plotting an implicit function, and non-implicit function on same graph..?

DonDaku
2014-03-10
2014-06-17
  • DonDaku
    DonDaku
    2014-03-10

    I'm having trouble plotting an implicit function, in my case a circle, and a quadratic graph in power 2, on the same graph.

    For example if i have the function y=x^2 + x.
    and the circle: x^2 + y^2 + 12x - 8y = 14.

    I tried a killer combo like so, but of course it plots only both graphs separately:

    plot2d([implicit_plot(x^2+y^2+6x-4y-7=0,[x,-10, 10], [y, -10,10]),plot2d(x^2+4*x,[x,-10, 10], [y, -10,10])]);

    Any help would be appreciated.

    Thanks in advance

     
    • This plots both on the same graph:

      load(implicit_plot)$
      implicit_plot([y=x^2 + x, x^2 + y^2 + 12*x - 8*y = 14], [x,-10,10], [y, -10, 10]);

       
      Last edit: Frederick Senese 2014-06-17
  • Ago77
    Ago77
    2014-03-13

    I find draw more handy for plotting multiple functions - you may need to load it in some versions:
    wxdraw2d(explicit(x^2+x, x, -4, 3), color=black, implicit(x^2+y^2+6x-4y-7, x, -10, 5, y, -10, 10))$