Difference between revisions of "Degree Command"
From GeoGebra Manual
m |
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)") |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|function}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|function}} | ||
− | ;Degree | + | ;Degree( <Polynomial> ) |
:Gives the [[w:en:degree of a polynomial|degree of a polynomial]] (in the main variable). | :Gives the [[w:en:degree of a polynomial|degree of a polynomial]] (in the main variable). | ||
:{{example|1= <div><code><nowiki>Degree[x^4 + 2 x^2]</nowiki></code> yields ''4''</div>}} | :{{example|1= <div><code><nowiki>Degree[x^4 + 2 x^2]</nowiki></code> yields ''4''</div>}} | ||
==CAS Syntax== | ==CAS Syntax== | ||
− | ;Degree | + | ;Degree( <Polynomial> ) |
:Gives the [[w:en:degree of a polynomial|degree of a polynomial]] (in the main variable or [[w:Monomial|monomial]]). | :Gives the [[w:en:degree of a polynomial|degree of a polynomial]] (in the main variable or [[w:Monomial|monomial]]). | ||
:{{example|1= <div> | :{{example|1= <div> | ||
:* <code><nowiki>Degree[x^4 + 2 x^2]</nowiki></code> yields ''4'' | :* <code><nowiki>Degree[x^4 + 2 x^2]</nowiki></code> yields ''4'' | ||
:* <code><nowiki>Degree[x^6 y^3 + 2 x^2 y^3]</nowiki></code> yields ''9''</div>}} | :* <code><nowiki>Degree[x^6 y^3 + 2 x^2 y^3]</nowiki></code> yields ''9''</div>}} | ||
− | ;Degree | + | ;Degree( <Polynomial>, <Variable> ) |
:Gives the degree of a polynomial in the given variable. | :Gives the degree of a polynomial in the given variable. | ||
:{{example|1= <div> | :{{example|1= <div> | ||
:* <code><nowiki>Degree[x^4 y^3 + 2 x^2 y^3, x]</nowiki></code> yields ''4'' | :* <code><nowiki>Degree[x^4 y^3 + 2 x^2 y^3, x]</nowiki></code> yields ''4'' | ||
:* <code><nowiki>Degree[x^4 y^3 + 2 x^2 y^3, y]</nowiki></code> yields ''3''</div>}} | :* <code><nowiki>Degree[x^4 y^3 + 2 x^2 y^3, y]</nowiki></code> yields ''3''</div>}} |
Revision as of 17:17, 7 October 2017
- Degree( <Polynomial> )
- Gives the degree of a polynomial (in the main variable).
- Example:
Degree[x^4 + 2 x^2]
yields 4
CAS Syntax
- Degree( <Polynomial> )
- Gives the degree of a polynomial (in the main variable or monomial).
- Example:
Degree[x^4 + 2 x^2]
yields 4Degree[x^6 y^3 + 2 x^2 y^3]
yields 9
- Degree( <Polynomial>, <Variable> )
- Gives the degree of a polynomial in the given variable.
- Example:
Degree[x^4 y^3 + 2 x^2 y^3, x]
yields 4Degree[x^4 y^3 + 2 x^2 y^3, y]
yields 3