Rate This Document
Findability
Accuracy
Completeness
Readability

pow3o2

Compute the value of x raised to the power of 3/2.

Interface Definition

C interface:

float pow3o2f(float x);

double pow3o2(double x);

Parameters

Parameter

Type

Description

Input/Output

x

  • For pow3o2f, x is of single-precision floating-point type.
  • For pow3o2, x is of double-precision floating-point type.

Floating-point value of the input data.

Input

Return Value

  • If input x is +0, the return value is +0.
  • If input x is -0, the return value is +0.
  • If input x is +∞, the return value is +∞.
  • If input x is -∞, the return value is NaN.
  • If input x is NaN, the return value is NaN.

Dependency

C: "km.h"

Example

C interface:
    // typical usage
    double x1 = 0.0, x2 = -0.0, x3 = 1.5, x4 = -2.5;
    // special handing
    double a = INFINITY, b = -INFINITY, c = NAN;
    // print result
    printf("pow3o2(0.0) = %.15f\n", pow3o2(x1));
    printf("pow3o2(-0.0) = %.15f\n", pow3o2(x2));
    printf("pow3o2(1.5) = %.15f\n", pow3o2(x3));
    printf("pow3o2(-2.5) = %.15f\n", pow3o2(x4));
    printf("pow3o2(INFINITY) = %.15f\n", pow3o2(a));
    printf("pow3o2(-INFINITY) = %.15f\n", pow3o2(b));
    printf("pow3o2(NAN) = %.15f\n", pow3o2(c));
    /* 
     *  pow3o2(0.0) = 0.000000000000000
     *  pow3o2(-0.0) = -0.000000000000000
     *  pow3o2(1.5) = 1.837117307087384
     *  pow3o2(-2.5) = nan
     *  pow3o2(INFINITY) = inf
     *  pow3o2(-INFINITY) = nan
     *  pow3o2(NAN) = nan
     * */