Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. richTextBox1.Clear();
  2.  
  3.  
  4.  
  5.  
  6. double x, y, z, A, B, h;
  7. A = Convert.ToDouble(textBox1.
  8. Text);
  9. B= Convert.ToDouble(textBox2.
  10. Text);
  11. h = Convert.ToDouble(textBox3.
  12. Text);
  13. for (x = A; x <= B + 0.1 * h; x += h)
  14. {
  15. y = Math.Cos(1.5 * x) * Math.Log10(2.5 * x);
  16.  
  17. z = (Math.Exp(1 / Math.Pow(x, 1 / 2))) * Math.Sin(x);
  18.  
  19.  
  20.  
  21. richTextBox1.Text += "x = " + x.ToString("0.00")
  22. + " \t y(x) = " + y.ToString("0.00")
  23. + " \t z(x) = " + z.ToString("0.00") + Environment.NewLine;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement