开3次方根怎么开啊

解决方案 »

  1.   

    或者
    pow( a ,0.3333333);
      

  2.   

    头文件里加入MATH.H?
    还需要什么吗?我怎么计算不出结果
      

  3.   

    #include <math.h>foat a = pow( 8 ,0.3333333);立方根有精度损失
      

  4.   

    if x>0 then 
    y=exp(log(x)/3.0) 
    else 
    if x=0 then 
    y=0 
    else 
    y=-exp(log(-x)/3.0) 
      

  5.   

    yzcurry() 也谢谢你,不过用 seu07201213  
    的方法搞定了。才看到你的
      

  6.   

    double y = pow(x,(float)1/3);
    这个效果也不错。