casinf.c\complex\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/complex/casinf.c
blob: 93f0e335092b02241445a50461c70e88b6295594 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "libm.h"
// FIXME
float complex casinf(float complex z)
{
	float complex w;
	float x, y;
	x = crealf(z);
	y = cimagf(z);
	w = CMPLXF(1.0 - (x - y)*(x + y), -2.0*x*y);
	return clogf(CMPLXF(-y, x) + csqrtf(w));
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月23日 10:45:32 +0000

AltStyle によって変換されたページ (->オリジナル) /