| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 4411 人关注过本帖
标题:[求助]isnan()和dot_product()两个函数的用法
只看楼主 加入收藏
guiyangl015
Rank: 1
等 级:新手上路
帖 子:125
专家分:0
注 册:2006-5-21
收藏
 问题点数:0 回复次数:4 
[求助]isnan()和dot_product()两个函数的用法
请教isnan()和dot_product()两个函数的用法,最好举个例子说说!

在看其他的代码时遇见的,但是查过它们应该时c语言里的!
劳烦各位高手!!非常感谢!
搜索更多相关主题的帖子: dot product isnan 函数 用法 
2006-12-07 09:43
lj_860603
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:714
专家分:0
注 册:2006-1-25
收藏
得分:0 
man isnan dot_product

我的原则很简单:不做不喜欢的事!
2006-12-07 12:14
lj_860603
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:714
专家分:0
注 册:2006-1-25
收藏
得分:0 
SYNOPSIS
#include <math.h>

int fpclassify(x);

int isfinite(x);

int isnormal(x);

int isnan(x);

int isinf(x);

Compile with -std=c99; link with -lm.

DESCRIPTION
Floating point numbers can have special values, such as infinite or
NaN. With the macro fpclassify(x) you can find out what type x is. The
macro takes any floating-point expression as argument. The result
takes one of the following values:

FP_NAN x is "Not a Number".

FP_INFINITE
x is either plus or minus infinity.

FP_ZERO
x is zero.

FP_SUBNORMAL
x is too small to be represented in normalized format.

FP_NORMAL
if nothing of the above is correct that it must be a normal
floating-point number.

The other macros provide a short answer to some standard questions.
isfinite(x)
returns a non-zero value if
(fpclassify(x) != FP_NAN && fpclassify(x) != FP_INFINITE)

isnormal(x)
returns a non-zero value if (fpclassify(x) == FP_NORMAL)

isnan(x)
returns a non-zero value if (fpclassify(x) == FP_NAN)

isinf(x)
returns 1 if x is positive infinity, and -1 if x is negative
infinity.



我的原则很简单:不做不喜欢的事!
2006-12-07 12:16
lj_860603
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:714
专家分:0
注 册:2006-1-25
收藏
得分:0 
$man dot_product
No manual entry for dot_product


我的原则很简单:不做不喜欢的事!
2006-12-07 12:17
guiyangl015
Rank: 1
等 级:新手上路
帖 子:125
专家分:0
注 册:2006-5-21
收藏
得分:0 
哇哇!全英文!不过还是谢谢了!我会尽力搞懂的!
thank you very much!!

站的高,才能看的远!!
2006-12-07 18:19
快速回复:[求助]isnan()和dot_product()两个函数的用法
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014271 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved