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;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double x = Convert.ToDouble(textBox1.Text);
const double ex = 0.0000001;
int n = (int)Math.Sqrt(x * x * x / (3 * Math.E * Math.Sqrt(Math.E) * ex));
double erf=0.0;
double h=x/n;
double z;
for (int i = 1; i < n; i++)
{
z=h*i;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载