Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

½Ð°ÝDeV-C++4 complex ¨ç¼Æ¦p¦ó©I¥s¨Ï¥Î¡H

0 views
Skip to first unread message

我是塾長江田島平八!

unread,
Dec 29, 2001, 2:00:31 AM12/29/01
to
as title

thanks
--
[1;31mO [1;32mr [1;33mi [1;34mg [1;35mi [1;36mn [1;31m: [1;36m<不良牛牧場> [1;33mzoo.ee.ntu.edu.tw [1;32m(140.112.18.36) [m
[1;32mWelcome to SimFarm BBS [1;36m-- [m [1;31mFrom : [ [m61-224-96-196.HINET-IP.hinet.net [1;31m] [m

imy315

unread,
Dec 29, 2001, 9:30:26 AM12/29/01
to
※ 引述《zchh...@zoo.ee.ntu.edu.tw (我是塾長江田島平八!)》之銘言:
> as title
> thanks
Example
//
// complex.cpp
//
#include <complex>
#include <iostream>
using namespace std;
int main()
{
complex<double> a(1.2, 3.4);
complex<double> b(-9.8, -7.6);
a += b;
a /= sin(b) * cos(a);
b *= log(a) + pow(b, a);
cout << "a = " << a << ", b = " << b << endl;
return 0;
}

程式出處:Borland C++ Builder Help
原文:
Description
complex<T> is a class that supports complex numbers.
A complex number has a real part and an imaginary part.
The complex class supports equality, comparison and basic arithmetic operations.
In addition, mathematical functions such as exponents, logarithms, powers,
and square roots are also available.

譯文:
complex<T>是一個支援complex numbers的class.
complex number 有實數及虛數二部份.
complex class 支援對等、比對及基本的算術運算.
另外,也有效用於像數學函數 exponets, logarithms, powers,及square roots.

--
[m○ Origin: 新竹師院 風之坊﹝bbs.NHCTC.edu.tw﹞From: 61-216-176-1.HINET-IP.hinet.net

0 new messages