复数应该如何呈现?
数学天真的问题:
表示 14+1i 的“规范”方式是什么?
14+i1
或者
14+i
类似地,在“现实世界”中,科学记数法是否可能会渗透到复数中,从而吓坏复数解析器? 例如,
1.2345E+02-1.7002E-09i
编辑:最后,它是
8.45358210351126e+066i
或
8.45358210351126e+66i
即一个零文件到虚数上的三位数字吗?
Mathematics naive question:
What is the "canonical" way to represent 14+1i?
14+i1
or
14+i
Similarly, is it likely, in the 'real world', that scientific notation is going to creep into a complex number so as to freak out a complex numbers parser? For example,
1.2345E+02-1.7002E-09i
Edit: Finally, is it
8.45358210351126e+066i
or
8.45358210351126e+66i
i.e. does one zero file to three digits on the imaginary?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
MATLAB 没有问题:
我认为这表明复数中的科学记数法(“
E
”)在“现实世界”中处理得很好......在某种程度上,MATLAB 是那个世界 =)No problems with MATLAB:
I think this shows that scientific notation ("
E
") in complex numbers is handled pretty well in the "real world"... to the extent that MATLAB is an influential part of that world =)我的偏好是:
不知怎的,它比 14 + 1i 更合我的眼睛。
My preference would be:
Somehow it's more pleasing to my eyes than 14 + 1i.
我将你的第一个例子表示为:
我当然希望看到复数中的科学记数法。 例如,Python 愉快地接受以下内容(根据 Python 的要求使用
j
):I would represent your first example as:
And I would certainly expect to see scientific notation in complex numbers. For example, Python happily accepts the following (using
j
as Python requires):“14 + 1i”比“14+i1”更好,但我更有可能说或写“14 + i”。
另外,
1.7002E-09i
(我在数学中没有见过,尽管毫无疑问它发生在工程或其他东西中)在没有上标字体的情况下看起来有点模糊(你的意思是1.7002* (10 ** -9)*i
或1.7002*(10 ** -9*i)
?),因此(1.7002E-09)i
可能会更好。"14 + 1i" is better than "14+i1", but I'd be more likely to say or write "14 + i".
Also,
1.7002E-09i
(which I haven't seen in Maths, though no doubt it happens in engineering or something) looks a bit ambiguous without a superscripted font (do you mean1.7002*(10 ** -9)*i
or1.7002*(10 ** -9*i)
?) and therefore(1.7002E-09)i
might be better.