---
title: v?invcbrt
description: "C interface："
url: https://www.hikunpeng.com/document/detail/zh/kunpengaccel/math-lib/devg-kml/kunpengaccel_kml_0063.html
sourcePath: /source/zh/kunpengaccel/math-lib/devg-kml/kunpengaccel_kml_0063.html
indexId: a8b3a478b0accb512a574b43da75eef055de893dc36bcf68b2fa0d908fb51a9568
---
# v?invcbrt

#### 接口定义

C interface：

void vsinvcbrt(const int len, const float *src, float *dst);

void vdinvcbrt(const int len, const double *src, double *dst);


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| len | 整型数 | 表示输入向量的元素个数。 len≤0时会提示len无效并返回。 | 输入 |
| src | 在vsinvcbrt中是单精度浮点类型。 在vdinvcbrt中是双精度浮点类型。 | 输入向量src，向量长度为len。 若为空指针，会提示空指针错误并返回。 | 输入 |
| dst | 在vsinvcbrt中是单精度浮点类型。 在vdinvcbrt中是双精度浮点类型。 | 输出dst，向量长度为len。 若为空指针，会提示空指针错误并返回。 | 输出 |


#### 输出结果

每一个运算值立方根的倒数。| 输入值（src） | 输出值（dst） |
| --- | --- |
| +0 | +inf |
| \-0 | \-inf |
| +inf | +0 |
| \-inf | \-0 |
| nan | nan |


#### 依赖

C: "kvml.h"


#### 示例

C interface：```
#define N 4
    const float src[N] = {-8.0f, 125.0f, -INFINITY, +0.0f};
    float dst[N] = {0};

    vsinvcbrt(N, src, dst);
    printFArr("input :", N, src);    
    printFArr("output:", N, dst);
 
    /** 
     *  input :  -8.000  125.000     -inf    0.000 
     *  output:  -0.500    0.200   -0.000      inf
     * 
     */
```
