Difference between revisions of "Length Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | <noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | ||
{{command|geometry}} | {{command|geometry}} | ||
− | ; Length[Vector]: Yields the length of the vector. | + | ;Length[Vector]: Yields the length of the vector. |
− | ; Length[Point A]: Yields the length of the position vector of the given point . | + | ;Length[Point A]: Yields the length of the position vector of the given point . |
− | ; Length[Function, Number x1, Number x2]: Yields the length of the function graph in the interval [''x1, x2'']. | + | ;Length[Function, Number x1, Number x2]: Yields the length of the function graph in the interval [''x1, x2'']. |
− | ; Length[Function, Point A, Point B]: Yields the length of the function graph between the two points ''A'' and ''B''. | + | ;Length[Function, Point A, Point B]: Yields the length of the function graph between the two points ''A'' and ''B''. |
− | : {{ | + | :{{note| If the given points do not lie on the function graph, their x‐coordinates are used to determine the interval.}} |
− | ; Length[Curve, Number t1, Number t2]: Yields the length of the curve between the parameter values ''t1'' and ''t2''. | + | ;Length[Curve, Number t1, Number t2]: Yields the length of the curve between the parameter values ''t1'' and ''t2''. |
− | ; Length[Curve c, Point A, Point B]: Yields the length of curve ''c'' between two points ''A'' and ''B'' that lie on the curve. | + | ;Length[Curve c, Point A, Point B]: Yields the length of curve ''c'' between two points ''A'' and ''B'' that lie on the curve. |
− | ; Length[List]: Yields the length of the list, which is the number of elements in the list. | + | ;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[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 Command|Perimeter]][Locus] to get the length of the locus itself. | + | ;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. |
− | + | {{note| See also [[Image:Tool Distance.gif]] [[Distance or Length Tool|Distance or Length]] tool.}} | |
− | {{ | ||
− | |||
==CAS Syntax== | ==CAS Syntax== | ||
− | ; Length[Function, Number t1, Number t2]: Calculates the length of a function graph from point x=''t1'' to point x=''t2''. | + | ;Length[Function, Number t1, Number t2]: Calculates the length of a function graph from point x=''t1'' to point x=''t2''. |
− | ; Length[Function, Variable a, Number t1, Number t2]: Calculates the length of a function graph from point a=''t1'' to point a=''t2''. | + | ;Length[Function, Variable a, Number t1, Number t2]: Calculates the length of a function graph from point a=''t1'' to point a=''t2''. |
− | + | :{{example|1=<div><code><nowiki>Length[2a, a, 0, 1]</nowiki></code> yields <math>\sqrt{3}</math>.</div>}} | |
− | : {{ | + | ;Length[Curve, Number t1, Number t2]: Calculates the length of a curve from point x=''t1'' to point x=''t2''. |
− | + | ;Length[Curve, Variable a, Number t1, Number t2]: Calculates the length of a curve from point a=''t1'' to point a=''t2''. | |
− | ; Length[Curve, Number t1, Number t2]: Calculates the length of a curve from point x=''t1'' to point x=''t2''. | ||
− | ; Length[Curve, Variable a, Number t1, Number t2]: Calculates the length of a curve from point a=''t1'' to point a=''t2''. |
Revision as of 11:42, 18 August 2011
- Length[Vector]
- Yields the length of the vector.
- Length[Point A]
- Yields the length of the position vector of the given point .
- Length[Function, Number x1, Number x2]
- Yields the length of the function graph in the interval [x1, x2].
- Length[Function, Point A, Point B]
- Yields the length of the function graph between the two points A and B.
- Note: If the given points do not lie on the function graph, their x‐coordinates are used to determine the interval.
- Length[Curve, Number t1, Number t2]
- Yields the length of the curve between the parameter values t1 and t2.
- Length[Curve c, Point A, Point B]
- Yields the length of curve c between two points A and B 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.
Note: See also Distance or Length tool.
CAS Syntax
- Length[Function, Number t1, Number t2]
- Calculates the length of a function graph from point x=t1 to point x=t2.
- 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[2a, a, 0, 1]
yields \sqrt{3}.
- Length[Curve, Number t1, Number t2]
- Calculates the length of a curve from point x=t1 to point x=t2.
- Length[Curve, Variable a, Number t1, Number t2]
- Calculates the length of a curve from point a=t1 to point a=t2.