Math.Log [英] Math.Log

查看:96
本文介绍了Math.Log的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在使用Math.Log10以相同的比例获取我的数字但是我正在运行

成问题负值。

Math.Log10(-143.73833558)返回一个NaN。


我还能用其他东西吗?


很抱歉,如果这看起来很明显,但我不是数学专家。


谢谢,

Joe

Hello,

I''m using Math.Log10 to get my numbers on the same scale but I''m running
into a problem with negative values.
Math.Log10(-143.73833558) is returning a NaN.

Is there something else I can use?

Sorry if this might seem obvious but I''m not a math wiz.

Thanks,
Joe

推荐答案

" Joe" < jb ******* @ noemail.noemailwrote in message

news:e8 ************** @ TK2MSFTNGP03.phx.gbl ...
"Joe" <jb*******@noemail.noemailwrote in message
news:e8**************@TK2MSFTNGP03.phx.gbl...

我正在使用Math.Log10以相同的比例获取我的数字但是我正在运行

成问题负值。

Math.Log10(-143.73833558)正在返回一个NaN。


我还能用其他东西吗?

对不起,如果这看起来很明显,但我不是数学专家。
I''m using Math.Log10 to get my numbers on the same scale but I''m running
into a problem with negative values.
Math.Log10(-143.73833558) is returning a NaN.

Is there something else I can use?

Sorry if this might seem obvious but I''m not a math wiz.



不,负数的对数未在Real

域中定义。如果你可以更精确地定义你的意思,那就是获得我的数字

相同的比例我们或许可以提出另一种方法。

No, the logarithm of a negative number is not defined in the Real
domain. If you can define more precisely what you mean by "get my numbers on
the same scale" we may be able to suggest an alternative approach.


9月30日,3:20 * pm,Joe < jbassk ... @ noemail.noemailwrote:
On Sep 30, 3:20*pm, "Joe" <jbassk...@noemail.noemailwrote:

我正在使用Math.Log10以相同的比例获取我的数字但我正在运行

带有负值的问题。

Math.Log10(-143.73833558)返回一个NaN。
I''m using Math.Log10 to get my numbers on the same scale but I''m running
into a problem with negative values.
Math.Log10(-143.73833558) is returning a NaN.



是的,我期待它。

Yes, I''d expect it to.


我还能用其他东西吗?


对不起,如果这看起来很明显,但我不是数学专家。
Is there something else I can use?

Sorry if this might seem obvious but I''m not a math wiz.



没有为负数定义日志。参见
http://msdn.microsoft.com/en-us/libr...10(SS.85).aspx


如果你只关心幅度,使用Math.Log10(Math.Abs​​(x))


Jon

Log isn''t defined for negative numbers. See
http://msdn.microsoft.com/en-us/libr...10(VS.85).aspx

If you only care about the magnitude, use Math.Log10(Math.Abs(x))

Jon


我需要的是取一个范围说10至38456并将其分为5

零件。


" Alberto Poblacion" < ea ****************************** @ poblacion.orgwro te
消息新闻中的
: %2 **************** @ TK2MSFTNGP06.phx.gbl ...
What I need is to take a range say 10 to 38456 and divide it up into 5
parts.

"Alberto Poblacion" <ea******************************@poblacion.orgwro te
in message news:%2****************@TK2MSFTNGP06.phx.gbl...

" Joe" < jb ******* @ noemail.noemailwrote in message

news:e8 ************** @ TK2MSFTNGP03.phx.gbl ...
"Joe" <jb*******@noemail.noemailwrote in message
news:e8**************@TK2MSFTNGP03.phx.gbl...

>我正在使用Math.Log10以相同的比例获取我的数字,但我正在运行
到负值的问题。
Math.Log10(-143.73833558)正在返回一个NaN。

还有什么我可以使用的吗?

对不起,如果这看起来很明显但是我'我不是数学专家。
>I''m using Math.Log10 to get my numbers on the same scale but I''m running
into a problem with negative values.
Math.Log10(-143.73833558) is returning a NaN.

Is there something else I can use?

Sorry if this might seem obvious but I''m not a math wiz.



不,负数的对数未在Real

域中定义。如果你可以更准确地定义你的意思,以相同的比例获得我的数字

我们或许可以提出另一种方法。


No, the logarithm of a negative number is not defined in the Real
domain. If you can define more precisely what you mean by "get my numbers
on the same scale" we may be able to suggest an alternative approach.



这篇关于Math.Log的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆