本文介绍了负基数上升到小数指数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道将负基数提高到

小数指数的近似值?例如,( - 3)^ - 4.11111因为这不能使用虚数来计算
。任何帮助表示赞赏。

解决方案



几个问题。


1.你如何估算实数中的复数?那不是
有意义。


2. x ^ -4.1111 = 1 /(x ^ 4.1111),那么复数输入的位置进入这个?


3.我想你会发现复杂的数字开始出现,因为你需要探索分数指数。


这是Python,还有一个可用的交互式解释器,你可以随时试试它:



-0.010927147607830808



-1.0



(1 + 0j)



(6.123233995736766e-17 + 1j)



(0.010268290423601775-0.0037369461622949107j)



问候

Steve

-

Steve Holden +1 571 484 6266 +1 800 494 3119

Holden Web LLC / Ltd

Skype:holdenweb


对不起,狗吃了我的.sigline所以我不能cat it




几个问题。


1.你如何估算实数中的复数?那不是
有意义。


2. x ^ -4.1111 = 1 /(x ^ 4.1111),那么复数输入的位置进入这个?



当* x *为负数且指数为小数时。


-

Robert Kern


我已经开始相信整个世界都是一个谜,一个无害的谜团

由于我们疯狂的尝试而变得可怕把它解释为好像它有一个潜在的真相。

- Umberto Eco





几个问题。


1.你如何估算实数中的复数?那不是
有意义。


2. x ^ -4.1111 = 1 /(x ^ 4.1111),那么复数输入的位置进入这个?


3.我想你会发现复杂的数字开始出现,因为你需要探索分数指数。



这是故事的一部分 - 另一部分是故事不同

取决于x是正还是负。



-0.010927147607830808



Steve,试图记住每个

的运算符优先级表几种语言从来都不是一个好主意。我承认高龄:-)和

放弃并使用括号,就像OP一样:



Traceback(最近期)最后调用):

文件"< stdin>",第1行,< module>

ValueError:负数不能提升到分数幂


祝你好运,

John


Does anyone know of an approximation to raising a negative base to a
fractional exponent? For example, (-3)^-4.11111 since this cannot be
computed without using imaginary numbers. Any help is appreciated.

解决方案

A couple of questions.

1. How do you approximate a complex number in the reals? That doesn''t
make sense.

2. x ^ -4.1111 = 1 / (x ^ 4.1111), so where do complex numbers enter
into this anyway?

3. I think you will find the complex numbers start to emerge as you
explore fractional exponents.

This being Python, and an interactive interpreter being available, you
can always just try it:

-0.010927147607830808

-1.0

(1+0j)

(6.123233995736766e-17+1j)

(0.010268290423601775-0.0037369461622949107j)

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden

Sorry, the dog ate my .sigline so I couldn''t cat it


A couple of questions.

1. How do you approximate a complex number in the reals? That doesn''t
make sense.

2. x ^ -4.1111 = 1 / (x ^ 4.1111), so where do complex numbers enter
into this anyway?

When *x* is negative and the exponent is fractional.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco



A couple of questions.

1. How do you approximate a complex number in the reals? That doesn''t
make sense.

2. x ^ -4.1111 = 1 / (x ^ 4.1111), so where do complex numbers enter
into this anyway?

3. I think you will find the complex numbers start to emerge as you
explore fractional exponents.

This is part of the story -- the other part is that the story differs
depending on whether x is positive or negative.

-0.010927147607830808

Steve, Trying to memorise the operator precedence table for each of
several languages was never a good idea. I admit advanced age :-) and
give up and use parentheses, just like the OP did:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: negative number cannot be raised to a fractional power

Best regards,
John


这篇关于负基数上升到小数指数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 02:34