8627


#include <cstdlib>

#include <iostream>

#include <stdio.h>

#include <math.h>

using namespace std;

int main(int argc, char *argv[])

{

int wykladnik;

double x;

double mantysa;

double log_nat;

double log_10;

cout<<"Podaj liczbe do rozkladu ";

cin>>x;

mantysa = frexp(x,&wykladnik);

cout<<"Mantysa wynosi "<<mantysa<<" a wykladnik "<<wykladnik<<"\n";

//-----------------------------------------

cout<<"Podaj mantyse ";

cin>>mantysa;

cout<<"Podaj wykladnik ";

cin>>wykladnik;

x = ldexp(mantysa,wykladnik);

cout<<"x wynosi "<<x<<" rowne "<<mantysa<<" *2 do potegi "<<wykladnik<<"\n";

//-----------------------------------------

cout<<"Podaj liczbe do logarytmu naturalnego ";

cin>>x;

log_nat = log(x);

cout<<"Logarytm naturalny liczby "<<x<<" wynosi "<<log_nat<<"\n";

//-----------------------------------------

cout<<"Podaj liczbe do logarytmu dziesietnego ";

cin>>x;

log_10 = log10(x);

cout<<"Logarytm dziesietny liczby "<<x<<" wynosi "<<log_10<<"\n";

//-----------------------------------------

getchar();

getchar();

return 0;

}

#include <cstdlib>

#include <iostream>

#include <stdio.h>

#include <math.h>

using namespace std;

int main(int argc, char *argv[])

{

double x=-1.0;

do

{ cout<<"Sinus hiperboliczny liczby "<<x<<" wynosi "<<sinh(x)<<"\n";

x= x + 0.1;

}while (x<=1.0);

getchar();getchar();

return 0;

}

#include <cstdlib>

#include <iostream>

#include <stdio.h>

#include <math.h>

using namespace std;

int main(int argc, char *argv[])

{

double x=-1.0;

do

{ cout<<"Sinus hiperboliczny liczby "<<x<<" wynosi "<<sinh(x)<<"\n";

x= x + 0.1;

}while (x<=1.0);

getchar();getchar();

return 0;

}

#include <cstdlib>

#include <iostream>

#include <stdio.h>

#include <math.h>

using namespace std;

int main(int argc, char *argv[])

{

double x=-1.0;

do

{ cout<<"Sinus hiperboliczny liczby "<<x<<" wynosi "<<sinh(x)<<"\n";

x= x + 0.1;

}while (x<=1.0);

getchar();getchar();

return 0;

}



Wyszukiwarka

Podobne podstrony:
8627
8627
8627
8627
rehabilitacja artykul 2006 04 8627

więcej podobnych podstron