代码搜索:complex
找到约 10,000 项符合「complex」的源代码
代码结果 10,000
www.eeworm.com/read/470720/1450792
c complex-6.c
/* This test tests complex conjugate and passing/returning of
complex parameter. */
#include
#include
int err;
#define TEST(TYPE, FUNC) \
__complex__ TYPE \
ctest_
www.eeworm.com/read/470693/1459020
c complex1.c
// Special g++ Options:
// This test makes sure that the stuff in lex.c (real_yylex) is
// set up to handle real and imag numbers correctly. This test is against
// a bug where the compiler was not
www.eeworm.com/read/470693/1460319
f complex_1.f
program complex_1
complex z0, z1, z2
z0 = cmplx(0.,.5)
z1 = 1./z0
if (z1 .ne. cmplx(0.,-2)) call abort
z0 = 10.*z0
if (z0 .ne. cmplx(0.,5.)) call abort
www.eeworm.com/read/470693/1462229
c complex-2.c
__complex__ double
f (__complex__ double x, __complex__ double y)
{
x += y;
return x;
}
__complex__ double ag = 1.0 + 1.0i;
__complex__ double bg = -2.0 + 2.0i;
main ()
{
__complex__ double a,
www.eeworm.com/read/470693/1462364
c complex-1.c
double
g0 (double x)
{
return 1.0;
}
double
g1 (double x)
{
return -1.0;
}
double
g2 (double x)
{
return 0.0;
}
__complex__ double
cexp (__complex__ double x)
{
double r;
r = g0 (__real_
www.eeworm.com/read/470693/1462491
c complex-5.c
float __complex__
p (float __complex__ a, float __complex__ b)
{
return a + b;
}
float __complex__ x = 1.0 + 14.0 * (1.0fi);
float __complex__ y = 7.0 + 5.0 * (1.0fi);
float __complex__ w = 8.
www.eeworm.com/read/470693/1462548
c complex-4.c
main ()
{
if ((__complex__ double) 0.0 != (__complex__ double) (-0.0))
abort ();
if (0.0 != -0.0)
abort ();
exit (0);
}
www.eeworm.com/read/470693/1462635
c complex-3.c
struct complex
{
float r;
float i;
};
struct complex cmplx (float, float);
struct complex
f (float a, float b)
{
struct complex c;
c.r = a;
c.i = b;
return c;
}
main ()
{
struct compl
www.eeworm.com/read/470693/1462738
c complex-6.c
/* This test tests complex conjugate and passing/returning of
complex parameter. */
#include
#include
int err;
#define TEST(TYPE, FUNC) \
__complex__ TYPE \
ctest_
www.eeworm.com/read/470693/1467221
h std_complex.h
// The template and inlines for the -*- C++ -*- complex number classes.
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C+