equal
(=) 代入 , 比較, 等号
説明
- 代入:
等号記号
=は値の変数への代入を定義する 際に使用されます.構文は次のようになります :a=exprただし,aは変数名,exprは 単一の結果を返すScilab式です.[a,b,...]=exprただし,a,b,...は変数名,exprは指定した変数名と同じ数の結果を返すScilab式です.
- 比較:
等号記号
=は,比較演算子にも使用されます:a==bは, 式aおよびbの値の等値比較を定義します.a~=bは, 式aとbの値の非等値比較も定義します:a<=bとa>=bは, 式aとbの値の順序比較も定義します:
構文の詳細については, 比較 を参照ください.
例
参照
- less — (<) より小さいの比較
- greater
- boolean — Scilab オブジェクト, 論理値(boolean)変数および演算子 & | ~
- isequal — tests the strict global equality between several objects, without equivalences
- comparison — 比較, 関係演算子
履歴
| バージョン | 記述 |
| 6.0 | ~ (not) priority is now higher than the comparisons one
(== ~= <= >=). For instance, ~%t==1
is parsed as (~%t)==1 instead of ~(%t==1)
and now yields %F instead of %T. |
| Report an issue | ||
| << dot | Scilab keywords | getscilabkeywords >> |