运算符和初等运算
对符号对象执行算术、关系和逻辑运算
Symbolic Math Toolbox™ 包括对符号对象执行算术、关系和逻辑运算以及模数和复数运算的函数。您可以使用这些函数执行简单运算(例如,加法、乘法和计算指数)以及其他运算(例如求 n
次方根、模数以及求除法的商和余数)。
函数
minus | Symbolic subtraction |
plus | Symbolic addition |
times | Symbolic array multiplication |
ldivide | 符号数组左除 |
rdivide | 符号数组右除 |
power | Symbolic array power |
nthroot | Nth root of symbolic numbers |
mtimes | Symbolic matrix multiplication |
mldivide | Symbolic matrix left division |
mrdivide | Symbolic matrix right division |
mpower | Symbolic matrix power |
transpose | Symbolic matrix transpose |
ctranspose | Symbolic matrix complex conjugate transpose |
运算符
eq | Define symbolic equation |
ge | Define greater than or equal to condition |
gt | Define greater than relation |
le | Define less than or equal to condition |
lt | Define less than relation |
ne | Define inequality |
函数
has | Check if expression contains particular subexpression |
hasSymType | Determine whether symbolic object contains specific type |
in | Numeric type of symbolic input |
isAlways | Determine if symbolic conditions are true for all values of variables |
isequal | Determine if symbolic inputs are equal |
isequaln | Test symbolic objects for equality, treating NaN values as
equal |
isSymType | Determine whether symbolic object is specific type |
max | Maximum elements of symbolic input (自 R2021a 起) |
min | Minimum elements of symbolic input (自 R2021a 起) |
piecewise | Conditionally defined expression or function |
运算符
and | Logical AND for symbolic expressions |
not | Logical NOT for symbolic expressions |
or | Logical OR for symbolic expressions |
xor | Logical XOR for symbolic expressions |
函数
all | Test whether all equations and inequalities represented as elements of symbolic array are valid |
any | Test whether at least one of equations and inequalities represented as elements of symbolic array is valid |
has | Check if expression contains particular subexpression |
hasSymType | Determine whether symbolic object contains specific type |
in | Numeric type of symbolic input |
isAlways | Determine if symbolic conditions are true for all values of variables |
isequaln | Test symbolic objects for equality, treating NaN values as
equal |
isfinite | Check whether symbolic array elements are finite |
isinf | Check whether symbolic array elements are infinite |
isnan | Check whether symbolic array elements are NaN s |
isSymType | Determine whether symbolic object is specific type |
logical | Determine if symbolic equation, inequality, or condition is true |
symtrue | Symbolic logical constant true |
symfalse | Symbolic logical constant false |
主题
- Check Symbolic Equations, Inequalities, and Conditional Statements
Determine if symbolic equations, inequalities, and conditional statements are true.
- Linear Algebraic Operations
Perform linear algebra with symbolic expressions and functions.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)