Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <math.h>
- #pragma endregion
- private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
- double y, x, a;
- if ((textBox1->Text!="")&&(textBox2->Text!=""))
- {
- a = Convert::ToDouble(textBox1->Text);
- x = Convert::ToDouble(textBox2->Text);
- if (x<=0){y=3*pow(x,5)-(cos(pow(x,3))/sin(pow(x,3)));}
- else
- if ((x>0)&&(x<=a)){y=pow((log(sin(4*x)+1)),2);}
- else
- if (x>a){y=pow((2*x*x+pow(x,4)+1),0.33);};
- textBox3->Text = Convert::ToString (y);}
- else {MessageBox::Show( "Введите пожалуйста А и Х", "Ошибка ввода данных", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); }
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment