对C99中复数的操作 [英] operations on complex numbers in C99

查看:125
本文介绍了对C99中复数的操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,C99支持复杂类型和复杂的
算术。在常见问题解答和网上没有任何关于它的内容

搜索除了概要之外几乎没有。任何人都可以指向

我的消息来源或举例说明如何:


-declare一个复杂的变量

-分配实部和虚部

-执行复数上的基本+, - ,*,/操作


谢谢,

David

解决方案

David Marsh写道:


我明白C99支持复杂类型复杂的算术。

在常见问题解答中没有任何关于它的信息,除了大纲之外,在线搜索非常有用。任何人都可以指向我的消息来源或给出

示例,其中显示如何:


-declare一个复杂的变量

-分配实部和虚部

-执行复数上的基本+, - ,*,/操作



我见过的唯一例子是在标准的附录G中,而不是最好的(在标准中说话!),但它们应该足以让你获得



-

Ian Collins。


David Marsh< dm **** @ mail.comwrites:


我知道C99支持复杂类型和复杂的
算术。在常见问题和在线搜索中没有任何关于它的信息
除了大纲之外,
很少见。任何人都可以指向

来源或举例说明如何:


-declare一个复杂变量

-分配实部和虚部

-执行复数上的基本+, - ,*,/操作



标准的最新草案是

< http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf> ;.


- -

Keith Thompson(The_Other_Keith) ks***@mib.org < http:// www .ghoti.net / ~kst>

圣地亚哥超级计算机中心< *< http://users.sdsc.edu/~kst>

"我们必须做一点事。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长


David Marsh写道:


>

我知道C99支持复杂类型和复杂的
算术。在常见问题解答和网上没有任何关于它的内容

搜索除了概要之外几乎没有。任何人都可以指向

我的消息来源或举例说明如何:


-declare一个复杂的变量

-分配实部和虚部

-执行复数上的基本+, - ,*,/操作



尝试N1124和/或N869。您可以通过以下方式获得BZ2'文本形式的N869:


< http://cbfalconer.home.att.net/download/>

-

Vista终于免于黑客入侵。没有人会''破解''

产品激活并尝试窃取o / s。任何聪明的人都足够聪明,也很聪明,不想打扰。


-

发表于来自 http://www.teranews.com 的免费Usenet帐户


I understand that C99 supports a complex type and complex
arithmetic. There is nothing about it in the FAQ and online
searches turned up very little except synopses. Can anyone point
me toward sources or give examples which show how to:

-declare a complex variable
-assign the real and imaginary parts
-perform the basic +,-,*,/ operations on complex numbers

Thanks,
David

解决方案

David Marsh wrote:

I understand that C99 supports a complex type and complex arithmetic.
There is nothing about it in the FAQ and online searches turned up very
little except synopses. Can anyone point me toward sources or give
examples which show how to:

-declare a complex variable
-assign the real and imaginary parts
-perform the basic +,-,*,/ operations on complex numbers

The only examples I have seen are in Annex G of the standard, not the
best (being in standards speak!), but they should be enough to get you
going.

--
Ian Collins.


David Marsh <dm****@mail.comwrites:

I understand that C99 supports a complex type and complex
arithmetic. There is nothing about it in the FAQ and online searches
turned up very little except synopses. Can anyone point me toward
sources or give examples which show how to:

-declare a complex variable
-assign the real and imaginary parts
-perform the basic +,-,*,/ operations on complex numbers

The latest draft of the standard is
<http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf>.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


David Marsh wrote:

>
I understand that C99 supports a complex type and complex
arithmetic. There is nothing about it in the FAQ and online
searches turned up very little except synopses. Can anyone point
me toward sources or give examples which show how to:

-declare a complex variable
-assign the real and imaginary parts
-perform the basic +,-,*,/ operations on complex numbers

Try N1124 and/or N869. You can get N869 in BZ2''d text form from:

<http://cbfalconer.home.att.net/download/>

--
"Vista is finally secure from hacking. No one is going to ''hack''
the product activation and try and steal the o/s. Anyone smart
enough to do so is also smart enough not to want to bother."

--
Posted via a free Usenet account from http://www.teranews.com


这篇关于对C99中复数的操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆