Difference between revisions of "Degree Command"

From GeoGebra Manual
Jump to: navigation, search
Line 2: Line 2:
 
{{command|function}}
 
{{command|function}}
 
;Degree[ <Polynomial> ]
 
;Degree[ <Polynomial> ]
:Gives the [[w:en:degree of a polynomial|degree of a polynomial]].
+
:Gives the [[w:en:degree of a polynomial|degree of a polynomial]].
 
:{{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[ <Polynomial> ]
 
;Degree[ <Polynomial> ]
:Gives the degree of a polynomial.
+
:Gives the [[w:en:degree of a polynomial|degree of a polynomial]].
 
:{{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>}}
 +
:{{example|1= <div><code><nowiki>Degree[x^4 y^3 + 2 x^2 y^3]</nowiki></code> yields ''7''.</div>}}
 
;Degree[ <Polynomial>, <Variable> ]
 
;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[a x^4 + 2 x^2, 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[a x^4 + 2 x^2, a]</nowiki></code> yields ''1''.</div>}}
+
:* <code><nowiki>Degree[x^4 y^3 + 2 x^2 y^3, y]</nowiki></code> yields ''3''.</div>}}

Revision as of 12:55, 8 September 2011



Degree[ <Polynomial> ]
Gives the degree of a polynomial.
Example:
Degree[x^4 + 2 x^2] yields 4.

CAS Syntax

Degree[ <Polynomial> ]
Gives the degree of a polynomial.
Example:
Degree[x^4 + 2 x^2] yields 4.
Example:
Degree[x^4 y^3 + 2 x^2 y^3] yields 7.
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 4,
  • Degree[x^4 y^3 + 2 x^2 y^3, y] yields 3.}}
© 2024 International GeoGebra Institute