Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Elementary Functions > Trigonometry > csgn

csgn

複素数の実部のベクトル符号を返す.

呼出し手順

s = csgn(z)

パラメータs

z

符号を計算する値のベクトル.

s

実部が0に等しくない場合:

  • ある要素の実部が正の場合 +1

  • ある要素の実部が負の場合 -1

実部が0に等しい場合:

  • ある要素の虚部が正の場合 +1

  • ある要素の虚部が負の場合 -1

要素が 0の場合, %nan を返します

説明

複素数の実部のベクトルの符号を返します.

A = [1 1+%i 0 -1 1-%i -1-%i];
disp(csgn(A))
Report an issue
<< csch Trigonometry sec >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:37:32 CEST 2013