声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2208|回复: 3

[Fortran] 关于NaN

[复制链接]
发表于 2006-9-6 07:32 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
一个比较大的三维数组,其中有少数元素是NaN,现在打算把这些元素定位出来,有没有函数或其它方法可以实现?
回复
分享到:

使用道具 举报

 楼主| 发表于 2006-9-6 07:32 | 显示全部楼层
CVF online document:

ISNAN
Elemental Intrinsic Function (Generic): Tests whether IEEE® real (S_floating and T_floating) numbers are Not-a-Number (NaN) values.

Syntax

result = ISNAN (x)


x
(Output) Must be of type real.
Results:

The result is of type default logical. The result is .TRUE. if x is an IEEE NaN; otherwise, the result is .FALSE..

Examples

  LOGICAL A
  DOUBLE PRECISION B
  ...
  A = ISNAN(B)

A is assigned the value .TRUE. if B is an IEEE NaN; otherwise, the value assigned is .FALSE..
发表于 2006-10-18 14:22 | 显示全部楼层
看来要成为一个优秀的程序员真不容易啊
 楼主| 发表于 2006-10-25 06:26 | 显示全部楼层
原帖由 alvin11 于 2006-10-18 14:22 发表
看来要成为一个优秀的程序员真不容易啊


这年头做什么都不太容易
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-19 16:10 , Processed in 0.098869 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表