MATLAB中assumeAlso,Add assumption on symbolic object

assumeAlso keeps all assumptions previously set on the symbolic

variables. To replace previous assumptions with the new one, use

assume.

When adding assumptions, always check that a new assumption does not contradict the

existing assumptions. To see existing assumptions, use assumptions. Symbolic Math Toolbox™ does not guarantee to detect conflicting assumptions. Conflicting

assumptions can lead to unpredictable and inconsistent results.

When you delete a symbolic variable from the MATLAB® workspace using clear, all assumptions that you set on that

variable remain in the symbolic engine. If later you declare a new symbolic variable with

the same name, it inherits these assumptions.

To clear all assumptions set on a symbolic variable var use this

command.

assume(var,'clear')

To clear all objects in the MATLAB workspace and close the Symbolic Math Toolbox engine associated with the MATLAB workspace resetting all its assumptions, use this command.

clear all

MATLAB projects complex numbers in inequalities to the real axis. If

condition is an inequality, then both sides of the inequality must

represent real values. Inequalities with complex numbers are invalid because the field of

complex numbers is not an ordered field. (It is impossible to tell whether 5 +

i is greater or less than 2 + 3*i.) For example, x

> i becomes x > 0, and x <= 3 +

2*i becomes x <= 3.

The toolbox does not support assumptions on symbolic functions. Make assumptions on

symbolic variables and expressions instead.

Instead of adding assumptions one by one, you can set several assumptions in one

function call. To set several assumptions, use assume and combine these assumptions by using the logical operators

and, or, xor, not, all, any, or their shortcuts.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值