Matematik yoz C++ dagi ifodasi
sinx sin(x)
cosx cos(x)
tgx tan(x)
ctgx = 1/tgx 1/tan(x)
x1/2 sqrt(x)///kvadrat ildiz
x2 x * x, pow(x, 2);
xa pow(x, a)//power
lnx log(x)
logab = lnb / lna log(b)/log(a)
log2a log2(a), log(a)/log(2)
lga log10(a), log(a)/log(10)
log3a log(a) / log(3) , log3(a)-xato;
|x| abs(x)- butun sonlar uchun,
fabs(x) – haqiqiy sonlar
pi = 3.14… M_PI
e=2.7182818284590452354 M_E
ex exp(x), pow(M_E, x);
a mod b(Qoldiqli bo`lish) a % b - butun sonlar uchun,
fmod(a, b) – haqiqiy sonlarga
floor() – pastga yaxlitlash
ceil() – yuqoriga yaxlitlash
trunc() – kasr qismini tashlab yuborish
round() – o`zimizni yaxlitlash
#include , - C++ dasturlash tili
#include - C dasturlash tili
Bjarne StroupStrup,1986
Do'stlaringiz bilan baham: |