Qurak

Find intersection points of a circle and parabola

Voorbeeld 2 stappen, op volgorde uitgevoerd in één sessie. Elke stap is tegen de engine uitgevoerd en de uitvoer hieronder is wat hij opleverde.

Stap 1
pts = NSolve[x ^ 2 + y ^ 2 == 1 && y - 2x ^ 2 + 3 / 2 == 0, {x, y}]
Uitvoer
{{x -> 0.9510565162951536, y -> 0.3090169943749477}, {x -> 0.5877852522924731, y -> -0.8090169943749475}, {x -> -0.5877852522924731, y -> -0.8090169943749475}, {x -> -0.9510565162951536, y -> 0.3090169943749477}}
Stap 2
Show[{ContourPlot[{x ^ 2 + y ^ 2 == 1, y - 2x ^ 2 + 3 / 2 == 0}, {x, -1.5, 1.5}, {y, -1.5, 1.5}], Graphics[{Red, PointSize[Medium], Point[{x, y} /. pts]}]}]
Uitvoer
-Graphics-

Gebruikte functies

Gerelateerde recepten

Alle recepten · Functiereferentie · Gebruik dit vanuit een MCP-client