主要内容

本页翻译不是最新的。点击此处可查看最新英文版本。

运算符和初等运算

对符号对象执行算术、关系和逻辑运算

Symbolic Math Toolbox™ 包括对符号对象执行算术、关系和逻辑运算以及模数和复数运算的函数。您可以使用这些函数执行简单运算(例如,加法、乘法和计算指数)以及其他运算(例如求 n 次方根、模数以及求除法的商和余数)。

函数

全部展开

minusSymbolic subtraction
plusSymbolic addition
timesSymbolic array multiplication
ldivideSymbolic array left division
rdivideSymbolic array right division
powerSymbolic array power
nthrootNth root of symbolic numbers
mtimesSymbolic matrix multiplication
mldivideSymbolic matrix left division
mrdivideSymbolic matrix right division
mpowerSymbolic matrix power
transposeSymbolic matrix transpose
ctransposeSymbolic matrix complex conjugate transpose

运算符

eqDefine symbolic equation
geDefine greater than or equal to condition
gtDefine greater than relation
leDefine less than or equal to condition
ltDefine less than relation
neDefine inequality

函数

hasCheck if expression contains particular subexpression
hasSymTypeDetermine whether symbolic object contains specific type
inNumeric type of symbolic input
isAlwaysDetermine if symbolic conditions are true for all values of variables
isequalDetermine if symbolic inputs are equal
isequalnTest symbolic objects for equality, treating NaN values as equal
isSymTypeDetermine whether symbolic object is specific type
maxMaximum elements of symbolic input (自 R2021a 起)
minMinimum elements of symbolic input (自 R2021a 起)
piecewiseConditionally defined expression or function

运算符

andLogical AND for symbolic expressions
notLogical NOT for symbolic expressions
orLogical OR for symbolic expressions
xorLogical XOR for symbolic expressions

函数

allTest whether all equations and inequalities represented as elements of symbolic array are valid
anyTest whether at least one of equations and inequalities represented as elements of symbolic array is valid
hasCheck if expression contains particular subexpression
hasSymTypeDetermine whether symbolic object contains specific type
inNumeric type of symbolic input
isAlwaysDetermine if symbolic conditions are true for all values of variables
isequalnTest symbolic objects for equality, treating NaN values as equal
isfiniteCheck whether symbolic array elements are finite
isinfCheck whether symbolic array elements are infinite
isnanCheck whether symbolic array elements are NaNs
isSymTypeDetermine whether symbolic object is specific type
logicalDetermine if symbolic equation, inequality, or condition is true
symtrueSymbolic logical constant true
symfalseSymbolic logical constant false
modSymbolic modulus after division
powermodModular exponentiation
quoremQuotient and remainder
remRemainder after division
absSymbolic absolute value (complex modulus or magnitude)
angleSymbolic polar angle
conjComplex conjugate of symbolic input
imagImaginary part of complex number
realReal part of complex number

主题