cau12 phep toan trong matlab
1.4 Cac ham toan hoc thong thuong.
Cac ham toan hoc cua Matlab doc liet ke trong bang cac ham nh sau:
Cac ham Chuc nang abs(x) Cho biet gia tri tuyet doi cua x cos(x) Ham cosin cua x sin(x) Ham sin cua x tan(x) Ham tg cua x acos(x) Ham ngoc cua cosin asin(x) Ham ngoc cua sin atan(x) Ham ngoc cua tan exp(x) ex log(x) Logarit tu nhien log10(x) Logarit co so 10 sqrt(x) Ham khai can bac hai real(x) Tra ve phan thuc cua so phuc imag(x) Tra ve phan ao cua so phuc gcd(x,y)so chung lon nhat cua hai so nguyen x va y lcm(x,y) Boi so chung nho nhat cua hai so nguyen x va y
Vi du: >> abs(-5)
ans =
5 >> cos(0) % chu y don vi dung cho ham cos la Radiun
ans =
1 >> sin(0)
ans =
0 >> tan(0)
ans =
0 >> acos(1)
ans =
0
>> exp(1)
ans =
2.7183 >> log(10)
ans =
2.3026 >> log10(100)
ans =
2 >> sqrt(25)
ans =
5 >> real(5-6*i)
ans =
5 >> imag(5+4*i)
ans =
4 >> gcd(15,20)
ans =
5 >> lcm(15,4)
ans =
60
Bạn đang đọc truyện trên: Truyen247.Pro