Qurak

Find a local minimum

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

Stap 1
Plot[x Cos[x], {x, 0, 20}]
Uitvoer
-Graphics-
Stap 2
min = FindMinimum[x Cos[x], {x, 2}]
Uitvoer
{-3.2883713955908966, {x -> 3.4256184594817283}}
Stap 3
pt = Reverse[Cases[min, _ ? NumberQ, Infinity]]
Uitvoer
{3.4256184594817283, -3.2883713955908966}
Stap 4
Plot[x Cos[x], {x, 0, 20}, Epilog -> {PointSize[Medium], Point[pt]}]
Uitvoer
-Graphics-

Gebruikte functies

Gerelateerde recepten

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