Commit Graph

59 Commits

Author SHA1 Message Date
Giles Atkinson 422a205409 Always propgate any individual scale for a vector that appears
in an expression, resolving conflicts by matching length and warning
only when making an arbitary choice.  One effect of this is that it
is now possible to mix analog nodes with offset digital nodes
(an expression like dvalue+6) without a warning and get a correct plot.
2023-07-15 11:14:35 +02:00
Holger Vogt 5cb5d218c9 Remove the obsolete RETSIGTYPE, replace by void 2023-03-18 14:30:29 +01:00
Giles Atkinson 8c7b7789d9 Suppress warning from gcc 10.2.1. 2022-05-10 15:29:43 +02:00
Holger Vogt 1605d293d0 Add function integ to control language
Trapezoidal rule for integrating a vector.
2021-12-13 21:49:45 +01:00
Holger Vogt bbccb4b63e Improved error message:
when argument out of range, name the term
2021-10-29 16:36:55 +02:00
Holger Vogt c67da190ef If function 'db' is evaluated, set
v_type to SV_DB.
2020-12-22 11:05:33 +01:00
Holger Vogt f49922c1f1 If a new vector is created by the functions cph or ph,
its type should be 'phase', not voltage. Thus prevent
raw file entries (created by the 'write' command like
	4	v(cph(vout2))	voltage
2020-12-22 11:05:10 +01:00
Holger Vogt b9901a2569 [PATCH 47] Refactored ft_getnames() and used the new function in
com_let().
2019-08-13 23:27:49 +02:00
Holger Vogt b4559327de do not use the current plot, but try to get the plot set in arg... 2019-03-21 20:20:56 +01:00
Holger Vogt c1b54a5978 return vector located in plot type given by 'name',
not just from the current plot
2019-03-21 20:20:00 +01:00
rlar bd0bc3038b use `SWAP' macro 2016-03-22 13:04:13 +01:00
rlar 9d32a0a5a9 simplify complex assignments 2015-12-29 18:15:06 +01:00
rlar 8243696338 dvec abstraction, #8/11, upgrade `dvec_alloc()' 2015-12-28 20:34:42 +01:00
rlar 8a4a37b5bb dvec abstraction, #4/11, emphasise `ZERO(dvec)' initialisation 2015-12-28 20:34:42 +01:00
rlar 908c650f72 dvec abstraction, #3/11, use `dvec_alloc()' 2015-12-28 20:34:42 +01:00
rlar 08ad3f6ab5 dvec abstraction, #1/11, reorder 2015-12-28 20:34:42 +01:00
rlar c442994a0a frontend/evaluate.c, apply_func(), reorder 2015-12-27 19:03:22 +01:00
rlar 8e50275345 frontend/evaluate.c, apply_func(), reorder 2015-12-23 10:56:12 +01:00
rlar da5ebd8645 frontend/evaluate.c, doop(), emphasise `v_type' initialisation 2015-12-23 10:37:44 +01:00
rlar 5ac7858a79 rewrite, use tprintf 2015-03-28 20:10:29 +01:00
dwarning 6a3da0105b fft and ifft as vector functions 2013-12-31 16:13:08 +01:00
h_vogt 155b6134a8 apply_func(), use arg->pn_value->v_name instead of recreated name 2012-12-09 13:27:53 +01:00
rlar 7454a6d486 src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...

checked for object file invariance on linux
2012-09-20 20:30:53 +02:00
rlar a056ea3065 #3/4 switch realpart() and imagpart() args from ngcomplex* to ngcomplex 2012-02-07 19:53:12 +00:00
rlar 10346e055c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
rlar d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
h_vogt 4679fdf046 sinh, cosh, tanh 2011-07-16 23:03:27 +00:00
rlar 2968fb3a97 `[]' indexing operator, round index to nearest integer 2011-06-23 17:52:49 +00:00
rlar 9ee308a2a5 function pointer invocation, (*p)(...) ---> p(...) 2011-06-23 16:45:32 +00:00
h_vogt e6c86b4d98 explicit casting double -> int etc. 2011-06-11 17:07:38 +00:00
rlar 545e9004e9 fix a segfault, incorrect invocation of free() 2011-06-02 11:02:52 +00:00
rlar 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +00:00
rlar 0b6a557334 code cleanup 2011-04-27 18:30:15 +00:00
rlar 7422d5d618 tiny rewrite to avoid "variable ... might be clobbered by 'longjmp'" warnings 2010-11-06 17:00:12 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar 4622d0876e ngcomplex_t instead of complex, #1/2 2010-10-24 12:45:05 +00:00
rlar 882b3b4155 add `PT_OP_' prefix to avoid name collision (END, PLUS, MINUS, ...) 2010-10-09 14:26:41 +00:00
rlar e945ab68bc collect some cx_*() prototypes in "cmath2.h" 2010-10-08 18:59:41 +00:00
rlar 7f3fdad192 change for readability 2010-08-15 17:22:50 +00:00
rlar c6bac55ef3 fix an ancient typo, responsible for segfault or garbage when operating on vectors 2010-07-30 19:44:11 +00:00
rlar d074de41f2 fix the type signature of the cx_* functions 2010-07-24 12:37:41 +00:00
rlar 59d4e5d961 fix various type glitches 2010-07-04 17:54:22 +00:00
rlar c30028310b ansi style function args for some function pointers 2010-07-03 21:27:53 +00:00
dwarning 5fcf9c2afe ternary operation in control blocks 2010-04-11 08:49:05 +00:00
h_vogt 07f90563dc patches R. Larice 2010-02-13 14:47:45 +00:00
h_vogt 13acf2cef1 SV_ADMITTANCE, signal prototype 2009-05-21 15:11:06 +00:00
pnenzi 5f716e4b61 Added new datatypes to vectors (impedance, admittance,atc.) A. Roldan -
espice
2009-01-16 14:31:07 +00:00
pnenzi f543aa8c06 Improvements in vector derivative computation and new functions to
compute group delay and moving average. From espice (A. Roldan).
2009-01-15 21:08:09 +00:00
h_vogt 3dc3d42553 Small changes, e.g. _MS_VER macro, added to allow compilation of tclspice with MS VC++ 2008 2008-10-04 22:44:52 +00:00
sjborley 3c843de4ad Changes to allow compile with MinGW. Macros used for sigjmp_buf (JMP_BUF), siglongjmp (LONGJMP) and sigsetjmp (SETJMP) 2005-05-17 21:49:07 +00:00