成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

complex 中文man頁面

系統
complex - 基礎復數數學,復數是一種形如 z = a + b*i,這里的 a 和 b 都是實數且 i = sqrt(-1),因此 i*i = -1。

名字

complex - 基礎復數數學

概要

#include <complex.h>

描述

復數是一種形如 z = a + b*i,這里的 a 和 b 都是實數且 i = sqrt(-1),因此 i*i = -1。
還存在其它表達這種數的方式。一個實數對(a, b) 被看作是水平面的一個點,此時給定了 X 和 Y 軸值。相同的點也可以通過給定一個實數對 (r, phi) 來確定,此時 r 是點到原點 O 的距離,而 phi 是線 Oz 與 X 軸的夾角。如此 z = r*exp(i*phi) = r*(cos(phi)+i*sin(phi))。

對 z = a+b*i 和 w= c+d*i 的基本操作定義如下:

加法: z+w = (a+c) + (b+d)*i
乘法: z*w = (a*c - b*d) + (a*d + b*c)*i
除法: z/w = ((a*c + b*d)/(c*c + d*d)) + ((b*c - a*d)/(c*c + d*d))*i

幾乎所有的數學函數都有復數的對應版本但卻有復數特有的函數。

示例

如果的你的 C 編譯器支持 C99 標準則它就可以與復數一些工作,此時需要鏈接 -lm 選項。虛單位使用 I 表示。

/* 檢測 exp(i * pi) == -1 */
#include <math.h> /* for atan */
#include <stdio.h>
#include <complex.h>

int
main(void)
{
    double pi = 4 * atan(1.0);
    double complex z = cexp(I * pi);
    printf("%f + %f * i\n", creal(z), cimag(z));
}

參看

cabs(3)、carg(3)、cexp(3)、cimag(3)、creal(3)

#p#

NAME

complex - basics of complex mathematics  

SYNOPSIS

#include <complex.h>  

DESCRIPTION

Complex numbers are numbers of the form z = a+b*i, where a and b are real numbers and i = sqrt(-1), so that i*i = -1.
There are other ways to represent that number. The pair (a,b) of real numbers may be viewed as a point in the plane, given by X- and Y-coordinates. This same point may also be described by giving the pair of real numbers (r,phi), where r is the distance to the origin O, and phi the angle between the X-axis and the line Oz. Now z = r*exp(i*phi) = r*(cos(phi)+i*sin(phi)).

The basic operations are defined on z = a+b*i and w = c+d*i as:

addition: z+w = (a+c) + (b+d)*i
multiplication: z*w = (a*c - b*d) + (a*d + b*c)*i
division: z/w = ((a*c + b*d)/(c*c + d*d)) + ((b*c - a*d)/(c*c + d*d))*i

Nearly all math function have a complex counterpart but there are some complex only functions.  

EXAMPLE

Your C-compiler can work with complex numbers if it supports the C99 standard. Link with -lm. The imaginary unit is represented by I.

/* check that exp(i*pi) == -1 */
#include <math.h>       /* for atan */
#include <complex.h>
main() {
        double pi = 4*atan(1);
        complex z = cexp(I*pi);
        printf("%f+%f*i\n", creal(z), cimag(z));
}

SEE ALSO

cabs(3), carg(3), cexp(3), cimag(3), creal(3)

責任編輯:韓亞珊 來源: 互聯網
相關推薦

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-11 15:28:43

ali中文man

2011-08-11 16:31:49

biff中文man

2011-08-11 17:16:43

cce中文man

2011-08-11 18:05:04

chvt中文man

2011-08-11 18:13:07

clear中文man

2011-08-12 09:13:02

df中文man

2011-08-12 09:38:06

dircolors中文man

2011-08-12 09:44:37

dirname中文man

2011-08-12 10:20:02

echo中文man

2011-08-12 10:25:55

eject中文man

2011-08-12 11:07:19

git中文man

2011-08-12 13:18:19

head中文man

2011-08-12 13:49:23

hostid中文man

2011-08-12 13:54:46

hostname中文man

2011-08-12 14:53:56

kill中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 超碰天天 | 欧美精选一区二区 | 久久久久久久一级 | 久久久久久影院 | 亚洲一区亚洲二区 | 视频在线日韩 | 精品久久成人 | 中文字幕一区二区三区日韩精品 | 黄色网址大全在线观看 | 久久免费观看视频 | 日韩av.com | 久久久久久国产 | 欧美极品一区二区 | 日韩欧美一区二区三区免费观看 | 精品免费国产视频 | 亚洲精品久 | 国产 日韩 欧美 制服 另类 | 国产视频一区二区 | 欧美一区二区三区视频 | 国产激情视频在线观看 | 天天干夜夜操视频 | 久久综合一区二区 | 亚洲h色 | 综合色在线 | 成人毛片在线观看 | 免费一级大片 | 中文字幕爱爱视频 | www.av在线 | 国产精品视频久久久 | 成人中文网 | 国产美女精品视频免费观看 | 久久久国产一区 | 亚洲人成在线播放 | 最新超碰 | 中文字幕在线观看精品 | 四虎在线播放 | 欧美精品久久久 | 国产日韩欧美一区二区在线播放 | 亚洲综合视频 | 欧美性吧 | 欧美一区二区三区在线观看 |