proof or algorithm behind isAlways
显示 更早的评论
I used Matlab isAlways function to show Eigenvalues of a hessian matrix are always positive. I tried to search for any algorithm it may use to convey the proof but I found nothing.
My first question: -How can I use Matlab isAlways function in my research? Is there any proof behind the function? any algorithm behind it?
The Eigenvalues are relatively large and I don't know other ways to proof that they are always positive. I have some assumptions related to Eigenvalues' parameters which cause to Matlab isAlways to output "always positive" in my case.
My second question: -What are alternatives that may help me to proof being always positive based on assumptions? if using Matlab isAlways is not suitable. Example:
assume(x>0)
assumeAlso(beta>0)
isAlways(exp(x)+beta>0)
2 个评论
George Herson
2017-12-12
编辑:George Herson
2017-12-12
To follow on to the above question, How can I learn more about how the isAlways function works? What is its algorithm? What are the names of the related math/logic topics? Thanks.
Walter Roberson
2017-12-12
x>0 implies x is real. exp() of a real is always non-negative, being 0 only when the value is -inf which is ruled out by x>0 . beta>0 implies beta is real and non-negative. Non-negative plus non-negative is always > 0.
回答(1 个)
George Herson
2019-10-28
1 个投票
isAlways() can immediately return items like 7>5 as true, but those that need it are (heuristically) simplified on both sides. Then the rhs is subtracted from the lhs and the difference compared with zero. If they're equal, true is returned from an equation, and false from a ≠ relation. Other relations are treated similarly (lhs - rhs) and related to zero, per the relop they specify. E.g., a greater-than relation is asked if (lhs - rhs) > 0, the answer simplified, and if its a Boolean, that is returned. If no Boolean results from this gauntlet, the result is how ever an undecidable result is handled.
类别
在 帮助中心 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!