📄 p1_3.m
字号:
% P1_3.M MATLAB functions for f(x) % We will scan through the manual and list a few commands% For trigonometric functions, the value is in radians% The list does not include some functions that make more sense for% vectors and matrices.%% Try help elfun for a longer list%diary p1_3.direcho onx=2.0abs(x) % Same value since x>0.acos(x) % If you don't understand this answer, review complex valuesacosh(x) % There are other functions such as asin, asinh, atan, etc.angle(x) % This is zero for a real numberceil(x) % Other functions are fix, floor and round (Try these for x=2.1) cos(x) % Other functions are cosh, cot, coth, sin, tan, etc.erf(x) % This is an integral; others are expint and gammaexp(x)gamma(x) % For an integer value, this is (n-1) factorialimag(x) % This is zero for x real log(x) % Others are log10 and log2sqrt(x)echo offdiary off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -