mpower
Laurent polynomial exponentiation
Description
Examples
Laurent Polynomial Exponentiation
Create two Laurent polynomials:
a = laurentPolynomial(Coefficients=[1 -1],MaxOrder=1); b = laurentPolynomial(Coefficients=[-2 6 -6 2],MaxOrder=3);
Raise to the third power. Confirm the result is not equal to .
a3 = a^3; a3 ~= b
ans = logical
1
Confirm raised to the third power is equal to .
b2 = rescale(b,-1/2); a3 == b2
ans = logical
1
Input Arguments
P
— Laurent polynomial
laurentPolynomial
object
Laurent polynomial, specified as a laurentPolynomial
object.
pow
— Power
integer
Power, specified as an integer. If pow
is negative,
P
must be a monomial.
Example: Q = mpower(lp,3)
raises the Laurent polynomial
lp
to the third power.
Data Types: double
Output Arguments
Q
— Laurent polynomial
laurentPolynomial
object
Laurent polynomial raised to a nonzero power, returned as a
laurentPolynomial
object.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2021b
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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)