Find root of implicit function in Mathematica

后端 未结 3 674
遥遥无期
遥遥无期 2020-12-30 18:24

Find root of implicit function in Mathematica

I have an implicit function, for example:

f(x,y) = x^3 + x*y + y^2 - 36

I want to find the

3条回答
  •  一向
    一向 (楼主)
    2020-12-30 18:54

    I would encourage you to explore the documentation on equation solving and particularly the Solve and NSolve functions.

    EDIT

    p = ContourPlot[x^3 + x*y + y^2 - 36 == 0, {x, -2 Pi, 2 Pi}, {y, -3 Pi, 3 Pi}]
    p //InputForm
    

    Copy and paste the bit you need.

    Alternatively, and in my view a better solution to your actual problem.

    sol = Solve[x^3 + x*y + y^2 - 36 == 0,{x}][[1]] 
    

    You might need some options to get the right solution.

    Table[{x/. sol,y},{y, -3 Pi, 3 Pi, 0.02}]
    

提交回复
热议问题