View source code
							
							
						
								Display the source code in std/complex.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.complex.pow
Calculates xn. The branch cut is on the negative axis.
						
				Complex!T pow(T, Int)
				(
				
				  Complex!T x,
				
				  const Int n
				
				) pure nothrow @nogc @safe
				
				if (isIntegral!Int);
				
				
				Complex!T pow(T)
				(
				
				  Complex!T x,
				
				  const T n
				
				) pure nothrow @nogc @trusted;
				
				
				Complex!T pow(T)
				(
				
				  Complex!T x,
				
				  Complex!T y
				
				) pure nothrow @nogc @trusted;
				
				
				Complex!T pow(T)
				(
				
				  const T x,
				
				  Complex!T n
				
				) pure nothrow @nogc @trusted;
						
					
				Parameters
| Name | Description | 
|---|---|
| x | base | 
| n | exponent | 
Returns
Example
import stdExample
import stdExample
import stdExample
import stdAuthors
Lars Tandle Kyllingstad, Don Clugston
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.