31 #include "qucs_typedefs.h"
45 #include "gtest/gtest.h"
58 EXPECT_NEAR ( 0.44,
jn (1, 1), 0.0001);
71 TEST (complex, jn_BesselFistKind) {
80 EXPECT_EQ ( 3 , data.
getCols() );
85 EXPECT_EQ ( 3 , vec.
getSize() );
86 for (
int k = 0; k < vec.
getSize(); k++)
97 for (
int k = 0; k < vec.
getSize(); k++)
102 for (
int k = 0; k < vec.
getSize(); k++)
104 EXPECT_EQ ( 8 , vdif.
get(k).real() );
106 EXPECT_EQ ( 0 , vdif.
get(k).real() );
111 module *m =
new module ();
112 EXPECT_EQ(NULL, m->definition);
113 EXPECT_EQ(NULL, m->circreate);
114 EXPECT_EQ(NULL, m->anacreate);
117 TEST (component, resistor_getType) {
120 std::cout << CIR_RESISTOR <<
" -- "<< res->
getType() << std::endl;
121 EXPECT_EQ( CIR_RESISTOR, res->
getType());
std::complex< nr_double_t > nr_complex_t
matrix real(matrix a)
Real part matrix.
qucs::vector fft_1d(qucs::vector, int isign=1)
nr_complex_t cos(const nr_complex_t z)
Compute complex cosine.
matrix imag(matrix a)
Imaginary part matrix.
nr_complex_t sqrt(const nr_complex_t z)
Compute principal value of square root.
void set(nr_double_t, int)
Dense matrix class header file.
Dense complex matrix class This class defines a matrix object with its methods, operators and operati...
nr_complex_t jn(const int n, const nr_complex_t z)
Bessel function of first kind.
matrix eye(int rs, int cs)
Create identity matrix with specified number of rows and columns.
unsigned int factorial(unsigned int n)
Compute factorial n ie $n!$.