📄 p1_3.dir
字号:
x=2.0
x =
2
abs(x) % Same value since x>0.
ans =
2
acos(x) % If you don't understand this answer, review complex values
ans =
0+ 1.3170i
acosh(x) % There are other functions such as asin, asinh, atan, etc.
ans =
1.3170
angle(x) % This is zero for a real number
ans =
0
ceil(x) % Other functions are fix, floor and round (Try these for x=2.1)
ans =
2
cos(x) % Other functions are cosh, cot, coth, sin, tan, etc.
ans =
-0.4161
erf(x) % This is an integral; others are expint and gamma
ans =
0.9953
exp(x)
ans =
7.3891
gamma(x) % For an integer value, this is (n-1) factorial
ans =
1
imag(x) % This is zero for x real
ans =
0
log(x) % Others are log10 and log2
ans =
0.6931
sqrt(x)
ans =
1.4142
echo off
x=2.0
x =
2
abs(x) % Same value since x>0.
ans =
2
acos(x) % If you don't understand this answer, review complex values
ans =
0+ 1.3170i
acosh(x) % There are other functions such as asin, asinh, atan, etc.
ans =
1.3170
angle(x) % This is zero for a real number
ans =
0
ceil(x) % Other functions are fix, floor and round (Try these for x=2.1)
ans =
2
cos(x) % Other functions are cosh, cot, coth, sin, tan, etc.
ans =
-0.4161
erf(x) % This is an integral; others are expint and gamma
ans =
0.9953
exp(x)
ans =
7.3891
gamma(x) % For an integer value, this is (n-1) factorial
ans =
1
imag(x) % This is zero for x real
ans =
0
log(x) % Others are log10 and log2
ans =
0.6931
sqrt(x)
ans =
1.4142
echo off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -