Difference between revisions of "NIntegral Command"

From GeoGebra Manual
Jump to: navigation, search
(added NIntegral( <Function>, <Start x-Value>, <Start y-Value>, <End x-Value> ))
Line 5: Line 5:
  
 
;NIntegral( <Function>, <Start x-Value>, <Start y-Value>, <End x-Value> )
 
;NIntegral( <Function>, <Start x-Value>, <Start y-Value>, <End x-Value> )
:Computes (numerically) the definite integral of the given function ''f'', starting at (''Start x-Value'', ''Start y-Value'') and ending at (''End x-Value'').
+
:Computes (numerically) the indefinite integral of the given function, and plots the graph of that function through (''Start x-Value'', ''Start y-Value''), with end point at (''End x-Value'').
:{{example| 1=<code><nowiki>NIntegral(ℯ^(x), 0, 1, 2)</nowiki></code>.}}
+
:{{example| 1=<code><nowiki>NIntegral(ℯ^(x+1), 0, 1, 2)</nowiki></code> plots the graph of <math>y=e^{x+1}+c</math> in the interval [0,2]. The value of ''c'' is defined by the initial condition (start x-Value, start y-Value)=(0,1).}}
  
 
{{hint|1=In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] the following syntax can also be used:
 
{{hint|1=In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] the following syntax can also be used:

Revision as of 13:15, 18 August 2022


NIntegral( <Function>, <Start x-Value>, <End x-Value> )
Computes (numerically) the definite integral \int_a^bf(x)\mathrm{d}x of the given function f, from a (Start x-Value) to b (End x-Value).
Example: NIntegral(ℯ^(-x^2), 0, 1) yields 0.75.


NIntegral( <Function>, <Start x-Value>, <Start y-Value>, <End x-Value> )
Computes (numerically) the indefinite integral of the given function, and plots the graph of that function through (Start x-Value, Start y-Value), with end point at (End x-Value).
Example: NIntegral(ℯ^(x+1), 0, 1, 2) plots the graph of y=e^{x+1}+c in the interval [0,2]. The value of c is defined by the initial condition (start x-Value, start y-Value)=(0,1).


Note Hint: In the Menu view cas.svg CAS View the following syntax can also be used:


NIntegral( <Function>, <Variable>, <Start Value>, <End Value> )
Computes (numerically) the definite integral \int_a^bf(t)\mathrm{d}x of the given function f, from a (Start value) to b (End value), with respect to the given variable.
Example: NIntegral(ℯ^(-a^2), a, 0, 1) yields 0.75.
© 2024 International GeoGebra Institute