ReadMe

The purpose of this web site is to provide students with Science class library code system, Science Code .Net, which is the same structure as the .NET class library. I imagine that, as we obtain all codes of .NET class library by downloading from Microsoft, one may download all codes of Science Code .Net that contain almost all terminologies of Science. The road to reach the goal is tough and the long journey waits for us. However, this site would be the first place to start. We expect that Science Code .Net is scalable and self-organizable. To obtain this goal, I proposed the HANA project, which can be found in this site.

For each subject in Science, we notice two parts. One is index code, and the other is test code. That is the heart of HANA project. To improve the quality assurance, I show all source codes here. If you find any better architecture, please send your suggestions.

The procedure to use these DLL codes is following.

(1)Receive Science.dll from the first page. (We need Excel.dll and Interop.dll for Graphics.)

(2)Make an WindowsApplication using Visual C# Express. In other words, create or open C# project.

(3)Then we can see a Form. It is better to make a Button and a TextBox in the Form. It is necessary to create an event for the Button.

(4)Add Science.dll as a reference.

(5)Copy some code in our web pages, and paste into the Form. Write "using C=Science.Mathematics.VectorCalculus;" in the top of code.

(6)Write some code in the private method of button1_Click().

(7)Compile and click the button. Then we have to see the result in the textBox.

As an example, I present the whole driver code for a simple integration.

 

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

using L = Science.Mathematics.VectorCalculus;

 

namespace WindowsApplication1

{

      public partial class Form1 : Form

      {

            public Form1()

           {

                 InitializeComponent();

            }

            private void button1_Click(object sender, EventArgs e)

           {

                L.Integration obj = new L.Integration();

                L.Function.ToLastType<double,double> f

                      = new L.Function.ToLastType<double,double>(Square);

                obj.Function = f;

                obj.From = 0.0;

                obj.To = 3.0;

                obj.Compute();

                textBox1.Text = obj.Result.ToString();

            }

            private double Square(double x)

           {

                 return x * x;

            }

       }

}

After we compile, we can see a Form. When we click the Button, we see in the TextBox as 9.

Finally again, I would like to emphasize the process of Handle All aNd All(HANA). Please inform me any bug in HANA project. You can contact me using e-mail,

                         sciencecode@gmail.com

Cheers!!