#include #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { /* double a,x,b=7.5,c; printf("Podaj x\n"); scanf("%lf",&x); printf("Podaj c\n"); scanf("%lf",&c); a=sqrt(pow(c,2)+pow(b,2)); printf("a=%lf\n",a); */ /* double y,x,b=7.5,c; printf("Podaj c\n"); scanf("%lf",&c); printf("Podaj x\n"); scanf("%lf",&x); y=2*pow(x,4)+b*pow(x,3)+c*pow(x,2)+8; printf("y=%lf\n",y); */ /* double y,x; printf("Podaj x\n"); scanf("%lf",&x); y=pow(((1/3.0+sin(x/2.0))*(pow(x,3.0)+3.0)),(1/3.0)); printf("y=%lf\n",y); */ /* double y,x; printf("Podaj x\n"); scanf("%lf",&x); y=pow(((1/3.0+sin(x/2.0))*(pow(x,3.0)+3.0)),(1/5.0)); printf("y=%lf\n",y); */ /* double x,z; printf("Podaj x\n"); scanf("%lf",&x); z=(sqrt(x+2)/(3*pow(x,2)-7*x+2)); printf("z=%lf\n",z); */ /* double x,a,b; printf("Podaj a\n"); scanf("%lf",&a); printf("Podaj b\n"); scanf("%lf",&b); if(a==0) { printf("brak m0\n"); }else { x=(-b/a); printf("miejsce zerowe to: %lf",x); } */ /* double y,x; printf("Podaj x\n"); scanf("%lf",&x); if(x<0) { y=sqrt(fabs(2+x)); }else { if(x==0) { y=2; }else { y=pow(x,2)+pow(M_E,2*x); } } printf("y=%lf",y); */ /* double y,x; printf("Podaj x\n"); scanf("%lf",&x); if(x<=-5) { y=2*x+10/3.0; }else { if(x>=7) { y=pow((sin(2*x)+pow(x,2)),(1.0/3)); }else { y=sqrt(fabs(x))+pow(M_E,x/2.0+1); } } printf("y=%lf",y); */ /* double y,x; printf("Podaj x\n"); scanf("%lf",&x); if(1<=x<=7) { y=pow(2*x+(1.0/4),(1.0/4)); }else { y=cos(pow(M_E,2*x)); } printf("y=%lf",y); */ /* double a,b,c,x,d,x1,x2; printf("Podaj a\n"); scanf("%lf",&a); printf("Podaj b\n"); scanf("%lf",&b); printf("Podaj c\n"); scanf("%lf",&c); d=pow(b,2)-4*a*c; x1=(-b-sqrt(d))/2*a; x2=(-b+sqrt(d))/2*a; printf("x1:%lf,\tx2:%lf\n",x1,x2); */ /* double a11,a12,a21,a22,b1,b2,x,y,w,wx,wy; printf("Podaj a11\n"); scanf("%lf",&a11); printf("Podaj a12\n"); scanf("%lf",&a12); printf("Podaj a21\n"); scanf("%lf",&a21); printf("Podaj a22\n"); scanf("%lf",&a22); printf("Podaj b1\n"); scanf("%lf",&b1); printf("Podaj b2\n"); scanf("%lf",&b2); wx=a22*b1-a12*b2; wy=a11*b2-a21*b1; w=a11*a22-a12*a21; printf("wx=%lf\n",wx); printf("wy=%lf\n",wy); printf("w=%lf\n",w); if(w!=0) { x=wx/w; y=wy/w; printf("x=%lf\n",x); printf("y=%lf\n",y); }else { if(wx==0 && wy==0) { printf("Tozsamosciowe\n"); }if(wx!=0 && wy!=0) { printf("Sprzeczne\n"); */ return 0; }