代码搜索:complex
找到约 10,000 项符合「complex」的源代码
代码结果 10,000
www.eeworm.com/read/306038/13754093
m complex1.m
clc
clear all;close all;
a=1.3;xceq=zeros(2,1);%迭代中止值
tmp=zeros(2,1);%临时变量
syms x1 x2 gx;
x0=zeros(2,4);xh=zeros(2,4);
x0(:,1)=[0.25 0.5]';x0(:,2)=[0 1]';
x0(:,3)=[1 0]';x0(:,4)=[0.48 0.55]';
www.eeworm.com/read/306033/13754481
htm demo_complex.htm
Operator Overloading. Complex Numbers in paxJavaScript, paxPascal, paxBasic and paxC.
www.eeworm.com/read/306033/13754679
pc c_complex.pc
structure Complex {
double re, im;
static Complex i = (0.0, 1.0);
// "+"
Complex operator + (Complex x, Complex y) {
Complex result = (x.re + y.re, x.im + y.im);
return result;
www.eeworm.com/read/306033/13754688
js javascript_complex.js
function Complex(re, im)
{
this.re = re;
this.im = im;
this.op_Addition = function (x, y){ return new Complex(x.re + y.re, x.im + y.im); }
this.op_Subtraction = function (x, y){ return
www.eeworm.com/read/306033/13754692
pb basic_complex.pb
Structure Complex
Dim re As Double
Dim im As Double
Shared Dim i As Complex = (0.0, 1.0)
' "+"
Operator + (x As Complex, y As Complex) As Complex
Dim result As Complex = (x.re + y.
www.eeworm.com/read/306033/13754763
pp pascal_complex.pp
program OperatorOverloading;
type
Complex = record
re, im: Double;
class const i: Complex = (0.0, 1.0);
// "+"
operator + (x, y: Complex): Complex;
begin
result.re