matlab -8开三次方为什么不是-2

2025-03-24 10:41:40
推荐回答(1个)
回答1:

数值计算中,当x不是整数时,a^x要求a>0才能保证实数。
这样写-8^(1/3),或-abs(8)^(1/3),一般可写为sign(a)*abs(a)^(1/3).sign是符号函数