I must not using include<cmath>
how can I write pow(x,y) and fabs(x) and abs(x)
Well what do you expect each function to do?
for example;
double sin(double x) //sin function
{return x-((x*x*x)/6.)+((x*x*x*x*x)/120.);}
double cos(double y) //cos function
{return 1-((x*x)/2.)+((x*x*x*x)/24.)-((x*x*x*x*x*x)/720.);}
Of you go then, write the code to do what you want it to do...
Last edited on
help me please I made all function but I didn'T make pow(x) and fabs(x) and abs(x) how can I write???
if( x < 0 ) return -x; else return x;
Last edited on
Have you written any C or C++ code before?
c++ kullanıyorum teşekkürler