Easy Math Help %22maca+noire%22 Easy Math Help

Easy Math Help Easy Easymathhelp Div Easy Math Help Fr 1 Easy Math Help math.h Easy - 위키백과, 우리 모두의 백과사전

Easy Math Help Easy Easymathhelp Div Easy Math Help Fr 1 Easy Math Help

  • math.h
  • setjmp.h
  • signal.h
  • stdarg.h
  • stdbool.h
  • stddef.h
  • stdint.h
  • stdio.h
  • stdlib.h
  • string.h
  • tgmath.h
  • time.h
  • wchar.h
  • wctype.h
  • v  d  e Math # Easy 6 Easy ; Help # Easy 6;h

    %E8%B3%AD+standard+deviationah. Math 는 여러 수학 함수들을 포함하는 C 언어표준 라이브러리이다. 대부분의 함수들이 부동소수점을 다루며, 각도는 라디안을 사용한다.

    목차

    [편집] 예제

    다음 예제는 부동소수점 수들의 거듭제곱을 출력한다.

    int main (void)
    {}
    

    실행 결과

    7 ^ 3 = 343.000000
    4.73 ^ 12 = 125410439.217423
    32.01 ^ 1.54 = 208.036691
    

    [편집] 함수

    함수 설명
    삼각 함수
    double sin ( double x ); 사인 x를 구한다.
    double cos ( double x ); 코사인 x를 구한다.
    double tan ( double x ); 탄젠트 x를 구한다.
    역 삼각 함수
    double asin ( double x ); 아크 사인 x를 구한다.
    double acos ( double x ); 아크 코사인 x를 구한다.
    double atan ( double x ); 아크 탄젠트 x를 구한다.
    double atan2 ( double y, double x ); 아크 탄젠트 y/x를 구한다.
    쌍곡선 함수
    double sinh ( double x ); 하이퍼볼릭 사인 x를 구한다.
    double cosh ( double x ); 하이퍼볼릭 코사인 x를 구한다.
    double tanh ( double x ); 하이퍼볼릭 탄젠트 x를 구한다.
    지수 · 대수 함수
    double exp ( double x ); ex를 구한다.
    double frexp ( double x, int * exp ); 지수를 exp가 가리키는 변수에 저장하고 가수를 반환한다.
    double ldexp ( double x, int exp ); x * 2exp를 반환한다.
    double log ( double x ); loge x를 구한다.
    double log10 ( double x ); log10 x를 구한다.
    double modf ( double x, double * intpart ); 정수부를 intpart가 가리키는 변수에 저장하고 소수부를 반환한다.
    거듭제곱 · 거듭제곱근 · 올림 · 내림 · 절댓값 · 나머지 함수
    double pow ( double base, double exponent ); baseexponent를 구한다.
    double sqrt ( double x ); 를 구한다.
    double ceil ( double x ); x보다 작지 않은 가장 작은 정수를 구한다.
    double floor ( double x ); x보다 크지 않은 가장 큰 정수를 구한다.
    double fabs ( double x ); x의 절댓값을 구한다.
    double fmod ( double numerator, double denominator ); numerator를 denominator로 나눈 나머지를 구한다.

    [편집] XSI Extensions

    아래의 문단에 한국어로 번역되지 않은 내용이 담겨 있습니다. 번역되지 않은 부분은 번역을 마치거나 삭제해주어야 합니다.
    This section needs to be translated into Korean. The untranslated parts of the section should be rewritten in Korean or eliminated.

    Extra functions may be available as X/Open System Interfaces Extensions. These are not present in any ANSI or ISO C standard.

    Name Description
    j0(x) Bessel function of x of the first kind of order 0
    j1(x) Bessel function of x of the first kind of order 1
    jn(n,x) Bessel function of x of the first kind of order n
    scalb(x,y) x * FLT_RADIXy (x and y are doubles)
    y0(x) Bessel function of x of the second kind of order 0
    y1(x) Bessel function of x of the second kind of order 1
    yn(n,x) Bessel function of x of the second kind of order n

    The double-to-string conversion functions ecvt, fcvt and gcvt have been deprecated in favour of sprintf.

    [편집] 변수 · 상수 · 형식

    이름 설명
    상수
    HUGE_VAL 아주 큰 값을 나타낸다. 수학 계산에서 결과가 너무 커 오버플로우가 나면 이 값을 반환한다.
    M_E 자연상수 e
    M_LOG2E log2e
    M_LOG10E log10e
    M_LN2 loge2
    M_LN10 loge10
    M_PI 원주율 π
    M_PI_2
    M_PI_4
    M_1_PI
    M_2_PI
    M_2_SQRTPI
    M_SQRT2
    M_SQRT1_2
    원본 주소 ‘w/index.php?title=Math.h&oldid=7769073
    분류:
    숨은 분류:
    개인 도구
    이름공간