茱莉亚分形_茱莉亚的NaN Constant
茱莉亞分形
Julia| NaN / Nan64常數(shù) (Julia | NaN/Nan64 Constant)
Nan / Nan64 is a constant of the Float64 type in Julia programming language, it represents "not-a-number" value.
Nan / Nan64是Julia編程語言中Float64類型的常量,它表示“非數(shù)字”值。
Syntax:
句法:
NaNNaN64Example:
例:
In this example, we are taking two variables x and y and assigning them with NaN and NaN64. We are printing the values and types of x and y using println() function and typeof() function. We are also comparing the NaN and NaN64.
在此示例中,我們采用兩個(gè)變量x和y ,并為其分配NaN和NaN64 。 我們正在使用println()函數(shù)和typeof()函數(shù)打印x和y的值和類型。 我們還在比較NaN和NaN64 。
# Julia example of NaN and NaN64x = NaN y = NaN64println("x: ", x) println("y: ", y)println("typeof(x): ", typeof(x)) println("typeof(y): ", typeof(y))# checking whether NaN and NaN64 are same println("NaN==NaN: ", NaN==NaN64)Output
輸出量
x: NaN y: NaN typeof(x): Float64 typeof(y): Float64 NaN==NaN: falseReference: Julia constants
參考: Julia常數(shù)
翻譯自: https://www.includehelp.com/julia/nan-constant.aspx
茱莉亞分形
總結(jié)
以上是生活随笔為你收集整理的茱莉亚分形_茱莉亚的NaN Constant的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 集合addall_Java集合
- 下一篇: java awt 按钮响应_Java A