📄 ismonomial.m
字号:
function r = ismonomial(obj)% GPOSYNOMIAL/ISMONOMIAL Checks whether the input general posynomial is a monomial.%% This is true when a GP variable, a monomial, or a posynomial with a single% term are casted as a generalized posynomial.if( strcmp(obj.op,'obj') ) r = ismonomial( obj.args{:} ); return;endif( strcmp(obj.op,'*') ) r = ismonomial( obj.args{1} ) && ismonomial( obj.args{2} ); return;endif isnumeric(obj.op) r = ismonomial( obj.args{:} ); return;end% otherwise max and plus cannot give a monomialr = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -