Difference between revisions of "Triangular Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|probability}}
 
{{command|probability}}
;Triangular[ <Lower Bound min>, <Upper Bound max>, <Mode mod>, x ]
+
;Triangular[ <Lower Bound>, <Upper Bound>, <Mode>, x ]
 
:Creates probability density function of [[w:Triangular distribution|triangular distribution]] with parameters ''min, max, mod''.
 
:Creates probability density function of [[w:Triangular distribution|triangular distribution]] with parameters ''min, max, mod''.
;Triangular[  <Lower Bound min>, <Upper Bound max>, <Mode mod>, x, <Boolean Cumulative> ]
+
;Triangular[  <Lower Bound>, <Upper Bound>, <Mode>, x, <Boolean Cumulative> ]
 
:If ''Cumulative'' is true, creates cumulative distribution function of triangular distribution, otherwise creates probability density function of triangular distribution.
 
:If ''Cumulative'' is true, creates cumulative distribution function of triangular distribution, otherwise creates probability density function of triangular distribution.
; Triangular[ <Lower Bound min>, <Upper Bound max>, <Mode mod>, <Variable Value v> ]: Calculates the value of cumulative distribution function of triangular distribution at ''v'', i.e. the probability ''P(X≤v)'' where ''X'' is a random variable with triangular distribution given by parameters ''min, max, mod''.
+
; Triangular[ <Lower Bound>, <Upper Bound>, <Mode>, <Variable Value> ]: Calculates the value of cumulative distribution function of triangular distribution at ''Variable Value v'', i.e. the probability ''P(X≤v)'' where ''X'' is a random variable with triangular distribution given by parameters ''min, max, mod''.
 
:{{Note| Returns the probability for a given ''x''-coordinate's value (or area under the triangular distribution curve to the left of the given ''x''-coordinate).}}
 
:{{Note| Returns the probability for a given ''x''-coordinate's value (or area under the triangular distribution curve to the left of the given ''x''-coordinate).}}
 
==CAS Syntax==
 
==CAS Syntax==
;Triangular[ <Lower Bound min>, <Upper Bound max>, <Mode mod>, <Variable Value v>]
+
;Triangular[ <Lower Bound>, <Upper Bound>, <Mode>, <Variable Value>]
:Calculates the value of cumulative distribution function of triangular distribution at ''v'', i.e. the probability ''P(X≤v)'' where ''X'' is a random variable with triangular distribution given by parameters ''min, max, mod''.
+
:Calculates the value of cumulative distribution function of triangular distribution at ''Variable Value v'', i.e. the probability ''P(X≤v)'' where ''X'' is a random variable with triangular distribution given by parameters ''min, max, mod''.
:{{example|1=<div><code><nowiki>Triangular[ 0, 5, 2, 2]</nowiki></code> yields ''0.4''.</div>}}
+
:{{example|1=<div><code><nowiki>Triangular[ 0, 5, 2, 2 ]</nowiki></code> yields ''0.4''.</div>}}

Revision as of 08:16, 8 July 2013



Triangular[ <Lower Bound>, <Upper Bound>, <Mode>, x ]
Creates probability density function of triangular distribution with parameters min, max, mod.
Triangular[ <Lower Bound>, <Upper Bound>, <Mode>, x, <Boolean Cumulative> ]
If Cumulative is true, creates cumulative distribution function of triangular distribution, otherwise creates probability density function of triangular distribution.
Triangular[ <Lower Bound>, <Upper Bound>, <Mode>, <Variable Value> ]
Calculates the value of cumulative distribution function of triangular distribution at Variable Value v, i.e. the probability P(X≤v) where X is a random variable with triangular distribution given by parameters min, max, mod.
Note: Returns the probability for a given x-coordinate's value (or area under the triangular distribution curve to the left of the given x-coordinate).

CAS Syntax

Triangular[ <Lower Bound>, <Upper Bound>, <Mode>, <Variable Value>]
Calculates the value of cumulative distribution function of triangular distribution at Variable Value v, i.e. the probability P(X≤v) where X is a random variable with triangular distribution given by parameters min, max, mod.
Example:
Triangular[ 0, 5, 2, 2 ] yields 0.4.
© 2024 International GeoGebra Institute