dwarning
794a37339a
ifft: in case input array is smaller then output array - fill in the rest with zero to prevent uninitialzed plot variables
3 years ago
dwarning
42b803e5c2
same array size for in- and output in inverse fft function from fftw3
3 years ago
Holger Vogt
0ee5e3f32a
Add a control language function cvector, to create a complex vector.
Let vec1 = cvector(50)
will generate a complex vector, with the real part values
increasing from 0 to 49, the imaginary values are set to 0.
Useful in ac loops to store result data.
3 years ago
Holger Vogt
3632a6b4ae
We need to translate from degree to rad
3 years ago
Holger Vogt
2a6052517b
Fix prvious commit: allow access to all vector elements of cc
3 years ago
Holger Vogt
68156fa62c
Complex number handling other than MSVC
3 years ago
Holger Vogt
71571a1432
Add function atanh to .control section
3 years ago
dwarning
45e6d319f3
partly revert last commit: only real input vector get special scaling for dc component
3 years ago
dwarning
bccaee4821
correct fft dc scaling bug #620
3 years ago
Holger Vogt
02789b2c42
The modulo function a % n should accept a==0.
The fix adds this to the control section function parser. The numparam
parser already has this feature. n==0 is rejected as usual.
3 years ago
Holger Vogt
638a09b718
Make doxygen documentation complete as an example.
4 years ago
Holger Vogt
70f38ec25f
Update for doxygen: add function names to \brief
4 years ago
Holger Vogt
b6d2a50e42
Update to comments for doxygen
4 years ago
Holger Vogt
3288d5ac99
Test for doxygen documentation
4 years ago
Holger Vogt
d7485d7136
Fix typo
4 years ago
Holger Vogt
d46b4030fb
Avoid jump in phase when crossing 90° boundaries.
Code similar to cx_cph in cmath1.c
4 years ago
Holger Vogt
26c50de68b
function deriv: This is just a preliminary fix: prevent a crash
when base > 0.
But when is base supposed to be > 0 ? More invetigation is needed.
4 years ago
Holger Vogt
1605d293d0
Add function integ to control language
Trapezoidal rule for integrating a vector.
4 years ago
Carsten Schoenert
2c2e21a80c
Smal typo fixup s/currntly/currently
5 years ago
Holger Vogt
4dbd8b7f9a
Preliminary fix for the 'interpolate' function.
Interpolation of 1D vectors is o.k. now,
multi-dimensional vectors are not (yet) supported.
5 years ago
Holger Vogt
1698004078
The tests of cmaths function will be done only on request,
with configure flag --enable-cmathtests
6 years ago
Jim Monte
b518d90509
EXITPOINT to delete malloced var in case of check failure
6 years ago
Holger Vogt
3a6a445241
rcheck -> rcheckn in cmath1.c
delete alloced memory in case of check failure
6 years ago
Holger Vogt
ba81e21197
rcheckn: rcheck plus freeing allocated memory
6 years ago
Jim Monte
de4788cfe5
Added conjugate function conj().
6 years ago
Jim Monte
ea81da2b01
[PATCH #55-1] Fixed some compiler warnings added by Visual Studio 2019
7 years ago
dwarning
76c43ab512
using the native tan and tanh math functions for real vector calculation
8 years ago
Holger Vogt
2786fcb86e
New .option seed=[val|random]
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
dwarning
b8a9ca9df4
correct the fft scaling for real input and complex output vector
9 years ago
rlar
3a9ace82bb
winmain.c, etc, cleanup, rewrite obfuscated symbols
substitute in the whole source code:
"__stream" --> "stream"
"__pos" --> "pos"
"__s" --> "s"
"__n" --> "n"
"__c" --> "c"
"__format" --> "format"
"__ptr" --> "ptr"
"__size" --> "size"
"__path" --> "path"
"__mode" --> "mode"
"__offset" --> "offset"
"__whence" --> "whence"
"__arglist" --> "arglist"
"__buf" --> "buf"
"__fp" --> "fp"
"f_c_l_o_s_e" --> "win_x_fclose"
"f_e_o_f" --> "win_x_feof"
"f_e_r_r_o_r" --> "win_x_ferror"
"f_f_l_u_s_h" --> "win_x_fflush"
"fg_e_t_c" --> "win_x_fgetc"
"f_g_e_t_p_o_s" --> "win_x_fgetpos"
"fg_e_t_s" --> "win_x_fgets"
"fp_r_i_n_t_f" --> "win_x_fprintf"
"fp_u_t_c" --> "win_x_fputc"
"fp_u_t_char" --> "win_x_fputchar"
"fp_u_t_s" --> "win_x_fputs"
"f_r_e_a_d" --> "win_x_fread"
"f_r_e_o_p_e_n" --> "win_x_freopen"
"fs_c_a_n_f" --> "win_x_fscanf"
"f_s_e_e_k" --> "win_x_fseek"
"f_s_e_t_p_o_s" --> "win_x_fsetpos"
"f_t_e_l_l" --> "win_x_ftell"
"f_w_r_i_t_e" --> "win_x_fwrite"
"g_e_t_c" --> "win_x_getc"
"g_e_t_char" --> "win_x_getchar"
"g_e_t_s" --> "win_x_gets"
"p_e_r_r_o_r" --> "win_x_perror"
"p_r_i_n_t_f" --> "win_x_printf"
"p_u_t_c" --> "win_x_putc"
"p_u_t_char" --> "win_x_putchar"
"p_u_t_s" --> "win_x_puts"
"r_e_a_d" --> "win_x_read"
"s_c_a_n_f" --> "win_x_scanf"
"ung_e_t_c" --> "win_x_ungetc"
"vfp_r_i_n_t_f" --> "win_x_vfprintf"
"vfs_c_a_n_f" --> "win_x_vfscanf"
"vp_r_i_n_t_f" --> "win_x_vprintf"
"vs_c_a_n_f" --> "win_x_vscanf"
9 years ago
rlar
ea5ad6b0e7
drop DC_ABS() and FTEcabs()
10 years ago
h_vogt
ae80067fef
cmath2.c, new function stddev to calculate the standard deviation of all elements of a vector
10 years ago
h_vogt
594db31ebc
cmath2.c, whitespace cleanup
10 years ago
rlar
b8b6677b85
cmath2.c, drop some excess NG_IGNORE()
10 years ago
h_vogt
2ab3b82696
cmath2.c, cleanup
10 years ago
rlar
2e35329678
cmath2.c, cleanup min/max operations
10 years ago
h_vogt
9f62057973
introduce include file "ngspice/randnumb.h"
10 years ago
h_vogt
fca8ab3146
cmath4.c, cx_deriv(), remove a memory leak
10 years ago
rlar
9d32a0a5a9
simplify complex assignments
10 years ago
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
10 years ago
rlar
8a4a37b5bb
dvec abstraction, #4/11, emphasise `ZERO(dvec)' initialisation
10 years ago
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
10 years ago
rlar
d98c5c90f3
src/maths/cmaths/cmath4.c, bug fix, cx_fft, cx_ifft, cx_derive
incorrect check for VF_COMPLEX in field v_type instead of v_flags
11 years ago
rlar
c6a8429258
src/maths/cmaths, implement `nint()' (.control language)
12 years ago
rlar
99eade8ec9
cleanup, rename cx_ln --> cx_log (.control language)
12 years ago
rlar
c926f46986
cleanup, rename rename cx_log --> cx_log10 (.control language)
12 years ago
dwarning
2e79c16f55
cmath4.c, drop unused doubledouble()
13 years ago
dwarning
2671aef5cd
cmath4.c, correct array size and relay to specific array order for r2c transformation
13 years ago