《通链参考手册》


Function REALPART, IMAGPART

●语法设定:

realpart number => real

imagpart number => real

●参数和值:

number---a number.

real---a real.

●详情:

realpart and imagpart return the real and imaginary parts of number respectively. If number is real, then realpart returns number and imagpart returns (* 0 number), which has the effect that the imaginary part of a rational is 0 and that of a float is a floating-point zero of the same format.

●例子:

 (realpart #c(23 41)) =>  23
 (imagpart #c(23 41.0)) =>  41.0
 (realpart #c(23 41.0)) =>  23.0
 (imagpart 23.0) =>  0.0

●副作用: None.

●受制于: 无。

●例外情况:

Should signal an error of type type-error if number is not a number.

●更多信息:

complex

●说明: 无。


X3J13设计清单非标准部分,可查下面章节:


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案