Qurak

N integrate introduction strategies rules and preprocessors

Tutoriel 4 étapes, exécutées dans l'ordre dans une même session. Chaque étape a été exécutée sur le moteur et la sortie ci-dessous est ce qu'elle a produit.

Étape 1
NIntegrate[(1/Sqrt[x])Log[(1/x)], {x, 0, 1}, Method -> {"GlobalAdaptive", Method -> "ClenshawCurtisRule"}]
Sortie
4.
Étape 2
NIntegrate[Log[1 + x ^ 2 + y], {x, 0, 10}, {y, 0, 10}, Method -> {"CartesianRule", Method -> {"GaussKronrodRule", "ClenshawCurtisRule"}}]
Sortie
NIntegrate[Log[1 + x^2 + y], {x, 0, 10}, {y, 0, 10}, Method -> {CartesianRule, Method -> {GaussKronrodRule, ClenshawCurtisRule}}]
Étape 3
NIntegrate[Boole[x^2 + y^2 < 1] * (1 - Sqrt[x^2 + y^2]), {x, -1, 1}, {y, -1, 1}, Method -> {"EvenOddSubdivision", Method -> "LocalAdaptive"}]
Sortie
NIntegrate[Boole[x^2 + y^2 < 1]*(1 - Sqrt[x^2 + y^2]), {x, -1, 1}, {y, -1, 1}, Method -> {EvenOddSubdivision, Method -> LocalAdaptive}]
Étape 4
Graphics[{PointSize[0.005], Point[Reap[NIntegrate[Boole[x^2 + y^2 < 1] * (1 - Sqrt[x^2 + y^2]), {x, -1, 1}, {y, -1, 1}, Method -> {"EvenOddSubdivision", Method -> "LocalAdaptive"}, EvaluationMonitor :> Sow[{x, y}]]][[2, 1]]]}, Axes -> True, PlotRange -> {{-1, 1}, {-1, 1}}]
Sortie
-Graphics-

Fonctions utilisées

Recettes connexes

Toutes les recettes · Référence des fonctions · Utiliser ceci depuis un client MCP