Difference between revisions of "IntegralBetween Command"

From GeoGebra Manual
Jump to: navigation, search
(Created page with "<noinclude>{{Manual Page|version=4.0}}{{PAGENAME}}</noinclude> {{command|function}} ; IntegralBetween[Function f, Function g, Number a, Number b]: ...")
 
(command syntax: changed [ ] into ( ))
 
(19 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|function}}
{{command|function}}
+
;IntegralBetween( <Function>, <Function>, <Number>, <Number> )
; IntegralBetween[Function f, Function g, Number a, Number b]: Returns the definite integral of the difference ''f(x) ‐ g(x)'' in the interval [''a, b''].
+
:Gives the definite integral of the difference ''f(x) ‐ g(x)'' of two function ''f'' and ''g'' over the interval ''[a, b]'', where ''a'' is the first number and ''b'' the second, with respect to the main variable.
: {{Note| This command also shades the area between the function graphs of ''f'' and ''g''.}}
+
:{{example| 1=<code><nowiki>IntegralBetween(sin(x), cos(x), 0, pi)</nowiki></code>}}
 
+
:{{note| 1=This command also shades the area between the function graphs of ''f'' and ''g''.}}
; IntegralBetween[Function f, Function g, Number a, Number b, Boolean Evaluate]: Returns the definite integral of the difference ''f(x) ‐ g(x)'' in the interval [''a, b''] and shadows the related area when ''Evaluate = true''.  In case ''Evaluate = false'' the related area is shaded but the integral value is not calculated.
+
;IntegralBetween( <Function>, <Function>, <Number>, <Number>, <Boolean Evaluate> )
 +
:Gives the definite integral of the difference ''f(x) ‐ g(x)'' of two function ''f'' and ''g'' over the interval ''[a, b]'', where ''a'' is the first number and ''b'' the second, with respect to the main variable and shadows the related area if ''Evaluate'' is ''true''.  In case ''Evaluate'' is ''false'' the related area is shaded but the integral value is not calculated.
 +
==CAS Syntax==
 +
;IntegralBetween( <Function>, <Function>, <Number>, <Number> )
 +
:Gives the definite integral of the difference ''f(x) ‐ g(x)'' of two function ''f'' and ''g'' over the interval ''[a, b]'', where ''a'' is the first number and ''b'' the second, with respect to the main variable.
 +
:{{example| 1=<code><nowiki>IntegralBetween(sin(x), cos(x), pi / 4, pi * 5 / 4)</nowiki></code> yields <math>2 \sqrt{2}</math>.}}
 +
;IntegralBetween( <Function>, <Function>, <Variable>, <Number>, <Number> )
 +
:Gives the definite integral of a variable of the difference ''f(x) ‐ g(x)'' of two function ''f'' and ''g'' over the interval ''[a, b]'', where ''a'' is the first number and ''b'' the second, with respect to the given variable.
 +
:{{example| 1=<code><nowiki>IntegralBetween(a * sin(t), a * cos(t), t, pi / 4, pi * 5 / 4)</nowiki></code> yields <math>2 \sqrt{2} a</math>.}}

Latest revision as of 09:27, 9 October 2017


IntegralBetween( <Function>, <Function>, <Number>, <Number> )
Gives the definite integral of the difference f(x) ‐ g(x) of two function f and g over the interval [a, b], where a is the first number and b the second, with respect to the main variable.
Example: IntegralBetween(sin(x), cos(x), 0, pi)
Note: This command also shades the area between the function graphs of f and g.
IntegralBetween( <Function>, <Function>, <Number>, <Number>, <Boolean Evaluate> )
Gives the definite integral of the difference f(x) ‐ g(x) of two function f and g over the interval [a, b], where a is the first number and b the second, with respect to the main variable and shadows the related area if Evaluate is true. In case Evaluate is false the related area is shaded but the integral value is not calculated.

CAS Syntax

IntegralBetween( <Function>, <Function>, <Number>, <Number> )
Gives the definite integral of the difference f(x) ‐ g(x) of two function f and g over the interval [a, b], where a is the first number and b the second, with respect to the main variable.
Example: IntegralBetween(sin(x), cos(x), pi / 4, pi * 5 / 4) yields 2 \sqrt{2}.
IntegralBetween( <Function>, <Function>, <Variable>, <Number>, <Number> )
Gives the definite integral of a variable of the difference f(x) ‐ g(x) of two function f and g over the interval [a, b], where a is the first number and b the second, with respect to the given variable.
Example: IntegralBetween(a * sin(t), a * cos(t), t, pi / 4, pi * 5 / 4) yields 2 \sqrt{2} a.
© 2021 International GeoGebra Institute