代码搜索:complex
找到约 10,000 项符合「complex」的源代码
代码结果 10,000
www.eeworm.com/read/351296/10661550
dsw complex.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
www.eeworm.com/read/421781/10699233
c complex.c
#include "complex.h"
comp cmplx(float a,float b)
{
comp z;
z.re = a;
z.im = b;
return(z);
}
comp cmul(comp a,comp b)
{
float tra,trb,tia,tib;
comp z;
tra=a.re;
tia=a.im;
trb=b.re;
tib
www.eeworm.com/read/421781/10699250
h complex.h
/*===========================
Define comp as complex type
cmplx c = (a,b)
cmul c=a*b
conjg c=a'
cabs1 f=|a|
cabs2 f=|a|**2
cadd c=a+b
csub c=a-b
czero c=(0.0,0.0)
==
www.eeworm.com/read/350722/10716566
c complex.c
/***
*Complex.c - The library function of complex operation.
*
*Purpose:
* This file offer the complex library operation.
* Add, Sub, Mul, Div, Expj, etc...
*
*Copyright:
* Modified by Jianlan
www.eeworm.com/read/350722/10716568
obj complex.obj
www.eeworm.com/read/350722/10716650
h complex.h
/***
*Complex.h - The declaration of complex library operation.
*
*Purpose:
* This file offer declaration the complex library operation.
* Add, Sub, Mul, Div, Expj, etc...
*
*Copyright:
* Modi
www.eeworm.com/read/276403/10741637
java complex.java
import java.io.*;
public class Complex {
private double realPart;
private double imaginaryPart;
public Complex(double a, double b) {
this.realPart = a;
this.imaginaryPart =
www.eeworm.com/read/420704/10780083
cpp complex.cpp
/*
* Copyright (c) 1999
* Silicon Graphics Computer Systems, Inc.
*
* Copyright (c) 1999
* Boris Fomitchev
*
* This material is provided "as is", with absolutely no warranty expressed
www.eeworm.com/read/349581/10815974
cpp complex.cpp
#include "mathclass.h"
complex operator-(complex const& a)
{
return complex( -a.p[0], -a.p[1]);
}
complex inverse(complex const& a)
{
return complex( a.p[0], -a.p[1]);
}
compl
www.eeworm.com/read/349581/10816012
h complex.h
#ifndef COMPLEX_H
#define COMPLEX_H
class vector;
class complex
{
private:
m_real p[2];
// negation
friend complex operator-( complex const& );
// addtion