Qurak

N integrate integration rules integration rule specification

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

Stap 1
NIntegrate[1 / Sqrt[x], {x, 0, 1}, Method -> {"GlobalAdaptive", Method -> "ClenshawCurtisRule"}]//InputForm
Uitvoer
InputForm[2.]
Stap 2
NIntegrate[1 / Sqrt[x], {x, 0, 1}, Method -> {"LocalAdaptive", Method -> "ClenshawCurtisRule"}]//InputForm
Uitvoer
InputForm[2.]
Stap 3
NIntegrate[1 / Sqrt[x], {x, 0, 1}, Method -> "LobattoKronrodRule"]//InputForm
Uitvoer
InputForm[NIntegrate[1/Sqrt[x], {x, 0, 1}, Method -> LobattoKronrodRule]]
Stap 4
NIntegrate[1 / Sqrt[x], {x, 0, 1}, Method -> {"GlobalAdaptive", Method -> "LobattoKronrodRule"}]//InputForm
Uitvoer
InputForm[2.]
Stap 5
NIntegrate[1 / Sqrt[x], {x, 0, 1}, Method -> "MonteCarloRule"]//InputForm
Uitvoer
InputForm[NIntegrate[1/Sqrt[x], {x, 0, 1}, Method -> MonteCarloRule]]
Stap 6
NIntegrate[1 / Sqrt[x], {x, 0, 1}, Method -> {"AdaptiveMonteCarlo", Method -> "MonteCarloRule"}]//InputForm
Uitvoer
InputForm[2.]

Gebruikte functies

Gerelateerde recepten

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