Changeset View
Changeset View
Standalone View
Standalone View
lib/msun/man/csqrt.3
Show All 18 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd March 30, 2008 | .Dd November 4, 2018 | ||||
.Dt CSQRT 3 | .Dt CSQRT 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm csqrt , | .Nm csqrt , | ||||
.Nm csqrtf , | .Nm csqrtf , | ||||
.Nm csqrtl | .Nm csqrtl | ||||
.Nd complex square root functions | .Nd complex square root functions | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
Show All 37 Lines | |||||
k + \*(Na*I \*(Na + \*(Na*I \& | k + \*(Na*I \*(Na + \*(Na*I \& | ||||
\*(Na + k*I \*(Na + \*(Na*I \& | \*(Na + k*I \*(Na + \*(Na*I \& | ||||
-\*(If + k*I +0 + \*(If*I \& | -\*(If + k*I +0 + \*(If*I \& | ||||
\*(If + k*I \*(If + 0*I \& | \*(If + k*I \*(If + 0*I \& | ||||
.El | .El | ||||
.Pp | .Pp | ||||
For numbers with negative imaginary parts, the above special cases | For numbers with negative imaginary parts, the above special cases | ||||
apply given the identity: | apply given the identity: | ||||
.Dl csqrt(conj(z) = conj(sqrt(z)) | .Dl csqrt(conj(z)) = conj(csqrt(z)) | ||||
Note that the sign of \*(Na is indeterminate. | Note that the sign of \*(Na is indeterminate. | ||||
Also, if the real or imaginary part of the input is finite and | Also, if the real or imaginary part of the input is finite and | ||||
an \*(Na is generated, an invalid exception will be thrown. | an \*(Na is generated, an invalid exception will be thrown. | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr cabs 3 , | .Xr cabs 3 , | ||||
.Xr fenv 3 , | .Xr fenv 3 , | ||||
.Xr math 3 | .Xr math 3 | ||||
.Sh STANDARDS | .Sh STANDARDS | ||||
Show All 13 Lines |