Qurak

Show the divergence as a background density

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
div[x_, y_] = Div[{Cos[x + y ^ 3], Sin[y + x ^ 3]}, {x, y}];

Geen uitvoer - deze stap zet iets klaar voor de volgende.

Stap 2
StreamDensityPlot[{{Cos[x + y ^ 3], Sin[y + x ^ 3]}, div[x, y]}, {x, -2, 2}, {y, 0, 2}, StreamPoints -> Fine, ColorFunction -> "MintColors", MaxRecursion -> 2, StreamStyle -> Black, StreamColorFunction -> None]
Uitvoer
-Graphics-

Gebruikte functies

Gerelateerde recepten

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