gusucode.com > symbolic工具箱matlab源码程序 > symbolic/@sym/checkIgnoreAnalyticConstraintsValue.m
function B = checkIgnoreAnalyticConstraintsValue(v) % Static auxiliary method of the sym class: % B = SYM.CHECKIGNOREANALYTICCONSTRAINTSVALUE(v) % checks the value v of the option IgnoreAnalyticConstraints, % and throws an error for invalid values. % It returns true if v is true, and false if v is false. % Copyright 2014-2015 The MathWorks, Inc. symTRUE = evalin(symengine, 'TRUE'); symFALSE = evalin(symengine, 'FALSE'); if isequal(v, true) || isequal(v, symTRUE) B = symTRUE; elseif isequal(v, false) || isequal(v, symFALSE) B = symFALSE; else error(message('symbolic:sym:badArgForOpt', 'IgnoreAnalyticConstraints')); end