Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ylab1
- {
- class Bruh {
- double x, y, z;
- double h;
- public Bruh( double _x, double _y, double _z ) {
- x = _x;
- y = _y;
- z = _z;
- }
- public void run(){
- h = ( Math.Pow( x, y + 1 ) + Math.Exp( y - 1 ) ) / ( 1 + x * Math.Abs( y - Math.Tan( z ) ) ) * ( 1 + Math.Abs( y - x ) ) + ( Math.Pow( Math.Abs(y - x ), 2 ) ) / (2) - ( Math.Pow( Math.Abs(y -x),3 )) / (3);
- }
- public void print(){
- Console.WriteLine( x );
- Console.WriteLine( y );
- Console.WriteLine( z );
- Console.WriteLine( h );
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- double x = 2.444;
- double y = 0.869 * Math.Pow( 10, -2 );
- double z =-0.13 * Math.Pow( 10, 3 );
- Bruh lab = new Bruh( x ,y,z);
- lab.run();
- lab.print();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement