0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Julia基本演算子一覧

Last updated at Posted at 2020-08-13

Juliaの算術演算子は比較的シンプルで覚えやすいですが、他の言語と混ざりやすいのでメモ程度に書いておきます。

算術演算子

x + y 加算 加算を行う
x - y 減算 減算を行う
x * y 乗算 乗算を行う
x / y 除算 除算を行う
x \ y 逆除算 y / x と等価
x ^ y べき乗 冪乗計算を行う
x % y 余剰 余剰を計算, rem(x, y)と等価
! x 否定 xがブール代数のときtrueとfalseを逆転させる

論理演算子

&& 論理積(短絡評価)
I I 論理和(短絡評価)
& 論理積
I 論理和

比較演算子

== 等価
!= , ≠ 非等価
< 未満
<= , ≤ 以下
> より大きい
>= , ≥ 以上
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?