Difference between revisions of "Length Command"
From GeoGebra Manual
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 3: | Line 3: | ||
;Length[ <Vector> ] | ;Length[ <Vector> ] | ||
:Yields the length of the vector. | :Yields the length of the vector. | ||
− | ;Length[ <Point | + | ;Length[ <Point> ] |
:Yields the length of the position vector of the given point . | :Yields the length of the position vector of the given point . | ||
− | ;Length[ <Function>, < | + | ;Length[ <Function>, <Start x-Value>, <End x-Value> ] |
− | :Yields the length of the function graph in the interval | + | :Yields the length of the function graph in the given interval. |
:{{example|1=<div><code><nowiki>Length[2x, 0, 1]</nowiki></code> returns 2.23606797749979, about <math>\sqrt{5}</math>.</div>}} | :{{example|1=<div><code><nowiki>Length[2x, 0, 1]</nowiki></code> returns 2.23606797749979, about <math>\sqrt{5}</math>.</div>}} | ||
− | ;Length[ <Function>, <Point | + | ;Length[ <Function>, <Start Point>, <End Point> ] |
− | :Yields the length of the function graph between the two points | + | :Yields the length of the function graph between the two points. |
:{{note| If the given points do not lie on the function graph, their x‐coordinates are used to determine the interval.}} | :{{note| If the given points do not lie on the function graph, their x‐coordinates are used to determine the interval.}} | ||
− | ;Length[ <Curve>, < | + | ;Length[ <Curve>, <Start x-Value>, <End x-Value> ] |
− | :Yields the length of the curve between the | + | :Yields the length of the curve between the two values. |
− | ;Length[ <Curve | + | ;Length[ <Curve>, <Start Point>, <End Point> ] |
− | :Yields the length of curve | + | :Yields the length of the curve between the two points that lie on the curve. |
;Length[ <List> ] | ;Length[ <List> ] | ||
:Yields the length of the list, which is the number of elements in the list. | :Yields the length of the list, which is the number of elements in the list. | ||
Line 21: | Line 21: | ||
;Length[ <Locus> ] | ;Length[ <Locus> ] | ||
:Returns the number of points that the given locus is made up of. Use [[Perimeter Command|Perimeter]][Locus] to get the length of the locus itself. For details see the article about [[First Command]]. | :Returns the number of points that the given locus is made up of. Use [[Perimeter Command|Perimeter]][Locus] to get the length of the locus itself. For details see the article about [[First Command]]. | ||
− | |||
;Length[ <Arc> ] | ;Length[ <Arc> ] | ||
− | :Returns the | + | :Returns the ''arc length'' (i.e. just the length of the curved section) of an arc or sector. |
==CAS Syntax== | ==CAS Syntax== | ||
− | ;Length[ <Function>, < | + | ;Length[ <Function>, <x-start>, <x-end> ] |
− | :Calculates the length of a function graph | + | :Calculates the length of a function graph between the two points. |
:{{example|1=<div><code><nowiki>Length[2 x, 0, 1]</nowiki></code> yields <math>\sqrt{5}</math>.</div>}} | :{{example|1=<div><code><nowiki>Length[2 x, 0, 1]</nowiki></code> yields <math>\sqrt{5}</math>.</div>}} | ||
;Length[ <Function>, <Variable a>, <Number t1>, <Number t2> ] | ;Length[ <Function>, <Variable a>, <Number t1>, <Number t2> ] | ||
:Calculates the length of a function graph from point a=''t1'' to point a=''t2''. | :Calculates the length of a function graph from point a=''t1'' to point a=''t2''. | ||
:{{example|1=<div><code><nowiki>Length[2 a, a, 0, 1]</nowiki></code> yields <math>\sqrt{5}</math>.</div>}} | :{{example|1=<div><code><nowiki>Length[2 a, a, 0, 1]</nowiki></code> yields <math>\sqrt{5}</math>.</div>}} | ||
+ | |||
+ | {{note| 1=<div>See also [[Image:Tool Distance.gif]] [[Distance or Length Tool|Distance or Length]] tool.</div>}} |
Revision as of 11:56, 25 March 2013
- Length[ <Vector> ]
- Yields the length of the vector.
- Length[ <Point> ]
- Yields the length of the position vector of the given point .
- Length[ <Function>, <Start x-Value>, <End x-Value> ]
- Yields the length of the function graph in the given interval.
- Example:
Length[2x, 0, 1]
returns 2.23606797749979, about \sqrt{5}.
- Length[ <Function>, <Start Point>, <End Point> ]
- Yields the length of the function graph between the two points.
- Note: If the given points do not lie on the function graph, their x‐coordinates are used to determine the interval.
- Length[ <Curve>, <Start x-Value>, <End x-Value> ]
- Yields the length of the curve between the two values.
- Length[ <Curve>, <Start Point>, <End Point> ]
- Yields the length of the curve between the two points that lie on the curve.
- Length[ <List> ]
- Yields the length of the list, which is the number of elements in the list.
- Length[ <Text> ]
- Yields the number of characters in the text.
- Length[ <Locus> ]
- Returns the number of points that the given locus is made up of. Use Perimeter[Locus] to get the length of the locus itself. For details see the article about First Command.
- Length[ <Arc> ]
- Returns the arc length (i.e. just the length of the curved section) of an arc or sector.
CAS Syntax
- Length[ <Function>, <x-start>, <x-end> ]
- Calculates the length of a function graph between the two points.
- Example:
Length[2 x, 0, 1]
yields \sqrt{5}.
- Length[ <Function>, <Variable a>, <Number t1>, <Number t2> ]
- Calculates the length of a function graph from point a=t1 to point a=t2.
- Example:
Length[2 a, a, 0, 1]
yields \sqrt{5}.
Note:
See also Distance or Length tool.