polynomialDegree
다항식의 차수
설명
예제
다항식의 차수
다항식 x^3 + x + 1
의 차수를 구합니다.
syms x p = x^3 + x + 1; deg = polynomialDegree(p)
deg = 3
변수에 대한 다변량 다항식의 차수
변수를 polynomialDegree
의 두 번째 인수로 지정합니다. symvar
에서 찾은 디폴트 독립 변수, 변수 x
및 변수 [a x]
로 다항식 a^2*x^3 + b^6*x
의 차수를 구합니다.
기본적으로 a
와 b
가 변수이므로 디폴트 변수를 사용하는 경우 차수는 7
입니다. 따라서 b^6*x
의 총 차수는 7
입니다.
syms a b x p = a^2*x^3 + b^6*x; deg = polynomialDegree(p) % uses symvar
deg = 7
deg = polynomialDegree(p,x)
deg = 3
vars = [a x]; deg = polynomialDegree(p,vars)
deg = 5
입력 인수
p
— 다항식
기호 표현식 | 기호 함수
다항식으로, 기호 표현식 또는 기호 함수로 지정됩니다.
vars
— 다항식 변수
기호 변수로 구성된 벡터
다항식 변수로, 기호 변수로 구성된 벡터로 지정됩니다.
버전 내역
R2018a에 개발됨
참고 항목
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)