线性代数代码值 [英] Linear Algebra code value

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

问题描述

此代码有什么作用?

What does this code do?

public class Epsilon
    {
        public static double Value
        {
            get { return 1.0e-5; }
        }
    }

推荐答案

要在Marcus的解决方案中添加一点点,这是科学的表示法,"e"基本上是时代" 10等于''的幂,因此在这种情况下是10 ^(-5)的1.0倍.

(下一部分只是一个有根据的猜测)

有时在数学中使用Epsilon来表示从一个数字到另一个数字的最小变化(例如1 + epsilon仅仅比1大一点点),但是由于计算机是离散的,我猜测1.0e-5刚被任意选择为一个较小的值,在数学上的行为类似于epsilon,但对于离散值.

如果没有上下文,很难告诉您更多信息.我们不知道其余代码的样子.
To add a little to Marcus''s solution, it''s scientific notation, ''e'' is basically ''times 10 to the power of'' so in this case, it''s 1.0 times 10^(-5).

(This next part is just an educated guess)

Epsilon is sometimes used in mathematics to represent a minimal change from one number to another (e.g. 1 + epsilon is just a tiny bit above 1), but since computers are discrete I''m guessing 1.0e-5 has just been arbitrarily chosen as a small value that will behave similar to epsilon in mathematics, but for discrete values.

It''s really hard to tell you more without some context. We don''t know what the rest of the code looks like.


这就是OOP的表达方式:
That''s the OOP way to say:
const double EPSILON = 0.00005;


:-)


它仅返回0.00001(该值只是一个不同的表示法)
It just returns 0.00001 (It is just a different notation for that value)


这篇关于线性代数代码值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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