반응형

분류 전체보기 2946

LDEXP, LDEXPF, LDEXPL

double ldexp(double x, int exp); x*2^exp 계산 float ldexpf(float x, int exp); x*2^exp 계산 long double ldexpl(long double x, int exp); x*2^exp 계산 입력 매개 변수 리스트 x 곱할 값 exp 멱수 반환 값 x*2^exp 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double ldexp(double x, int exp); x*2^exp 계산 //float ldexpf(float x, int exp); x*2^exp 계산 //long double ldexpl(long double x, int exp); x*2^exp 계산 //x*2^exp 값 계산 #include #include int ..

LOG1P, LOG1PF, LOG1PL

double log1p(double x); 자연 로그(x-1) float log1pf(float x); 자연 로그(x-1) long double log1pl(long double x); 자연 로그(x-1) 입력 매개 변수 리스트 x 실수 반환 값 자연로그 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double log1p(double x); 자연 로그(x - 1) //float log1pf(float x); 자연 로그(x - 1) //long double log1pl(long double x); 자연 로그(x - 1) #include #include int main(void) { printf("%f\n", log1p(exp(1.0) - 1)); printf("%f\n", log1p(exp(..

TAN, TANF, TANL

double tan(double x); tangent 계산 float tanf(float x); tangent 계산 long double tanl(long double x); tangent 계산 입력 매개 변수 리스트 x radian 반환 값 tangent 값 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double tan(double x); tangent 계산 //float tanf(float x); tangent 계산 //long double tanl(long double x); tangent 계산 //0, 30, 45, 60, 90도의 tangent 값 #include #include int main(void) { double radian; radian = 0.0; printf("%f..

SIN, SINF, SINL

double sin(double x); sine 계산 float sinf(float x); sine 계산 long double sinl(long double x); sine 계산 입력 매개 변수 리스트 x radian 반환 값 sine 값 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double sin(double x); sine 계산 //float sinf(float x); sine 계산 //long double sinl(long double x); sine 계산 //0, 30, 45, 60, 90도의 sine 값 #include #include int main(void) { double radian; radian = 0.0; printf("%f 도\n", radian * 180 / 3...

COS, COSF, COSL

double cos(double x); cosine 계산 float cosf(float x); cosine 계산 long double cosl(long double x); cosine 계산 입력 매개 변수 리스트 x radian 반환 값 cosine 값 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double cos(double x); cosine 계산 //float cosf(float x); cosine 계산 //long double cosl(long double x); cosine 계산 //0, 30, 45, 60, 90도의 cosine 값 #include #include int main(void) { double radian; radian = 0.0; printf("%f 도\n", r..

ATAN2, ATAN2F, ATAN2L

double atan2(double y, double x); arc tangent 계산 float atan2f(float y, float x); arc tangent 계산 long double atan2l(long double y, long double x); arc tangent 계산 입력 매개 변수 리스트 y 직각 삼각형의 높이 x 직각 삼각형의 밑변의 너비 반환 값 arc tangent 값 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double atan2(double y, double x); arc tangent 계산 //float atan2f(float y, float x); arc tangent 계산 //long double atan2l(long double y, long dou..

ATAN, ATANF, ATANL

double atan(double x); arc tangent 계산 float atanf(float x); arc tangent 계산 long double atanl(long double x); arc tangent 계산 입력 매개 변수 리스트 x tangent 값 반환 값 arc tangent 값 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double atan(double x); arc tangent 계산 //float atanf(float x); arc tangent 계산 //long double atanl(long double x); arc tangent 계산 //0, pi/4, pi/2의 tangent 값과 tangent값의 atangent 값 출력 #include #include..

ASIN, ASINF, ASINL

double asin(double x); arc sine 계산 float asinf(float x); arc sine 계산 long double asinl(long double x); arc sine 계산 입력 매개 변수 리스트 x sine 값(-1~1) 반환 값 arc sine 값 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double asin(double x); arc sine 계산 //float asinf(float x); arc sine 계산 //long double asinl(long double x); arc sine 계산 //1.0, 0.5, -0.5, -1.0의 arc sine 값 출력 #include #include int main(void) { double value=s..

ACOS, ACOSF, ACOSL

double acos(double x); arc cosine 계산 float acosf(float x); arc cosine 계산 long double acosl(long double x); arc cosine 계산 입력 매개 변수 리스트 x cosine 값(-1~1) 반환 값 arc cosine 값 사용 예 //C언어 표준 라이브러리 함수 사용법 가이드 //double acos(double x); arc cosine 계산 //float acosf(float x); arc cosine 계산 //long double acosl(long double x); arc cosine 계산 //1.0, 0.5, -0.5, -1.0의 arc cosine 값 출력 #include #include int main(void..

math.h

math.h 헤더에는 수치 연산에 관한 여러 가지 함수와 매크로와 형식을 제공하고 있습니다. 이 책에서는 헤더에서 제공하는 함수 중에 150여개의 함수 사용법을 소개합니다. 대부분 입력 인자가 double, float, long double만 차이가 있고 실제 수행하는 기능은 같은 함수군으로 제공하여 실제 쓰임새로 구분하면 50여개의 함수군을 소개합니다. double acos(double x); arc cosine 계산 float acosf(float x); arc cosine 계산 long double acosl(long double x); arc cosine 계산 double asin(double x); arc sine 계산 float asinf(float x); arc sine 계산 long dou..

반응형