using System.doc

(22 KB) Pobierz
using System;

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

 

namespace WindowsApplication7

{

    public partial class Form1 : Form

    {

        public Bitmap bm;

        public Form1()

        {

            InitializeComponent();

        }

 

        private void Form1_Load(object sender, EventArgs e)

        {

 

        }

 

        private void button1_Click(object sender, EventArgs e)

        {

            Graphics g = this.CreateGraphics();

            Pen p = newPen(Color.Blue, 2);

            bm = new Bitmap(this.Width, this.Height, g);

            Point pkt = new Point();

            int i = 0;

            while (i < 90)

            {

                {

                    double x = 0 + i * 0.011, y = Math.Pow(Math.Asin(x), Math.Sqrt(1 - x * x));

                    int a = 200 * (int)x, b = 10 * (int)y;

                    listBox1.Items.Add("x+" + x + "a=" + a);

                    listBox1.Items.Add("y=" + y + "b=" + b);

                    pkt = new Point(a, b);

                    bm.SetPixel(a, b, Color, Black);

                    i++;

                }

                g.DrawImage(bm, 0, 0);

                g.DrawLine(p, newPoint(O, 300), newPoint(200, 300));

 

 

                {

                }

            }

        }

    }

           

            }

       

       

 

 

 

   

 

...
Zgłoś jeśli naruszono regulamin