资源简介

《C#数值计算算法编程》电子书+随书源码

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;

///


namespace CharpAlgorithm.Sample
{
    /// 
    /// 示例程序Sample1_1:精度不足导致违反代数结合律
    /// 

    class sample1_1
    {
        [STAThread]
        static void Main(string[] args)
        {
            Console.WriteLine(“精度不足导致违反加法结合律“);
            float a = 1.0f;
            float b = 7.842357E-10f;
            float c = 3.170807E-09f;
            Console.WriteLine(“a=“ + a);
            Console.WriteLine(“b=“ + b);
            Console.WriteLine(“c=“ + c);
            Console.WriteLine(“(a+b)+c=“ + (a + b) + c);
            Console.WriteLine(“a+(b+c)=“ + a + (b + c));
            if ((a + b) + c == a + (b + c))
                Console.WriteLine(“=====>(a+b)+c=a+(b+c)“);
            else
                Console.WriteLine(“=====>(a+b)+c!=a+(b+c)“);
            Console.ReadLine();

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      16384  2008-05-22 15:08  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\bin\Debug\CharpAlgorithm.Sample.exe

     文件      11776  2008-05-22 15:08  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\bin\Debug\CharpAlgorithm.Sample.pdb

     文件       5632  2005-11-11 22:25  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\bin\Debug\CharpAlgorithm.Sample.vshost.exe

     文件       1976  2008-05-22 15:02  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\CharpAlgorithm.Sample.csproj

     文件        190  2008-05-22 15:09  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\obj\CharpAlgorithm.Sample.csproj.FileList.txt

     文件      16384  2008-05-22 15:08  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\obj\Debug\CharpAlgorithm.Sample.exe

     文件      11776  2008-05-22 15:08  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\obj\Debug\CharpAlgorithm.Sample.pdb

     文件        995  2008-05-22 15:20  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\Program.cs

     文件       1207  2008-05-22 15:02  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample\Properties\AssemblyInfo.cs

     文件        952  2008-05-22 15:02  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample.sln

    ..A..H.     10240  2008-05-22 15:20  C#数值计算算法编程\C#与数值计算\Sample1_1\CharpAlgorithm.Sample.suo

     文件        916  2008-05-22 15:21  C#数值计算算法编程\C#与数值计算\Sample1_2\CSharpAlogrithm.Sample.sln

    ..A..H.     10240  2008-05-22 15:27  C#数值计算算法编程\C#与数值计算\Sample1_2\CSharpAlogrithm.Sample.suo

     文件      16384  2008-05-22 15:25  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\bin\Debug\Sample1_2.exe

     文件      11776  2008-05-22 15:25  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\bin\Debug\Sample1_2.pdb

     文件       5632  2005-11-11 22:25  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\bin\Debug\Sample1_2.vshost.exe

     文件      16384  2008-05-22 15:25  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\obj\Debug\Sample1_2.exe

     文件      11776  2008-05-22 15:25  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\obj\Debug\Sample1_2.pdb

     文件        142  2008-05-22 15:26  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\obj\Sample1_2.csproj.FileList.txt

     文件       1045  2008-05-22 15:27  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\Program.cs

     文件       1183  2008-05-22 15:21  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\Properties\AssemblyInfo.cs

     文件       1952  2008-05-22 15:21  C#数值计算算法编程\C#与数值计算\Sample1_2\Sample1_2\Sample1_2.csproj

     文件      16384  2008-05-22 15:37  C#数值计算算法编程\C#与数值计算\sample1_3\CSharpAlgorithm.Sample\bin\Debug\CSharpAlgorithm.Sample.exe

     文件      11776  2008-05-22 15:37  C#数值计算算法编程\C#与数值计算\sample1_3\CSharpAlgorithm.Sample\bin\Debug\CSharpAlgorithm.Sample.pdb

     文件       5632  2005-11-11 22:25  C#数值计算算法编程\C#与数值计算\sample1_3\CSharpAlgorithm.Sample\bin\Debug\CSharpAlgorithm.Sample.vshost.exe

     文件       1978  2008-05-22 15:28  C#数值计算算法编程\C#与数值计算\sample1_3\CSharpAlgorithm.Sample\CSharpAlgorithm.Sample.csproj

     文件        194  2008-05-22 15:41  C#数值计算算法编程\C#与数值计算\sample1_3\CSharpAlgorithm.Sample\obj\CSharpAlgorithm.Sample.csproj.FileList.txt

     文件      16384  2008-05-22 15:37  C#数值计算算法编程\C#与数值计算\sample1_3\CSharpAlgorithm.Sample\obj\Debug\CSharpAlgorithm.Sample.exe

     文件      11776  2008-05-22 15:37  C#数值计算算法编程\C#与数值计算\sample1_3\CSharpAlgorithm.Sample\obj\Debug\CSharpAlgorithm.Sample.pdb

     文件       1243  2008-05-22 15:37  C#数值计算算法编程\C#与数值计算\sample1_3\CSharpAlgorithm.Sample\Program.cs

............此处省略2135个文件信息

评论

共有 条评论