rlar
dc6e1cb064
use strchr() instead of strstr()
2017-03-19 20:24:49 +01:00
rlar
40a0cea0d2
swap some `SWAP' arguments for readability
2016-03-22 15:23:05 +01:00
rlar
bd0bc3038b
use `SWAP' macro
2016-03-22 13:04:13 +01:00
Marcel Hendrix
f9432cb3da
frontend/com_measure2.c, bug fix for "meas AVG"
...
meas "AVG" did merely the average of the given values,
without consideration of their spacing on the "scale" axis.
now use trapezoidal summing to calculate the AVG
note, there is "meas INTEG"
which goes beyond trapezoidal summing
2015-04-16 21:20:20 +02:00
rlar
64da5a99bf
src/frontend/com_measure2.c, cleanup, rewrite `correct_vec()'
2015-03-22 19:16:36 +01:00
rlar
27aae75ade
src/frontend/com_measure2.c, bug fix, typo when setting `m_vectype2'
...
this doesn't change anything, because m_vectype2 is nowhere used.
2015-03-22 19:15:44 +01:00
rlar
c5e0bcde04
cleanup using `hypot()'
2014-12-06 20:41:11 +01:00
rlar
6050e2e0ea
cleanup some extra parentheses
2013-12-31 16:12:44 +01:00
h_vogt
8f44839f3e
com_measure.c, measure.c: remove memory leaks
2012-12-09 16:24:39 +01:00
rlar
11579d9369
cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones)
2012-10-06 12:12:08 +02:00
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
2012-09-22 19:33:55 +02:00
rlar
ab98f03622
src/frontend/** whitespace, indentation, ...
...
checked for object file invariance on linux
2012-09-22 19:33:50 +02: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
h_vogt
11ae043c3d
com_measure2.c: enable 'meas dc' without 'from' and 'to' given
...
measure.c: no error printout during autostop
2012-08-05 20:03:00 +02:00
h_vogt
d1d2ff94e4
measure, error message updated and return(NAN) in case of measure failure
...
test for failure with isnan()
2012-07-23 22:57:32 +02:00
h_vogt
14914025c0
measure_at(), allow real valued data for meas ac
2012-06-26 23:43:50 +02:00
rlar
d8105873db
remove error.h, use fteext.h for controlled_exit()
2012-06-12 21:26:29 +02:00
rlar
a1ea1b3193
round to next nearest integer for the rise, fall and cross arguments of `measure'
...
Simon Guan reported
Bug item #3509528 , `Meas goes wrong when put in a while loop'
In a .control block a `let' variable was passed to the `measure' command.
The value of this variable would have been a plain integer,
yet it was converted internally to an internal ascii representation
with exponential representation (203 ==> 2.03e2)
and then processed by `ft_numparse()' where it was converted back to
double floating point.
Because the intermediate 2.03 has
no exact representation in the space of double floating point numbers
this conversion was lossy and resulted in a non-integer value.
This non-integer was then truncated towards minus infinity in com_measure
yielding an error of -1
This commit implements round to nearest in com_measure2
to avoid the problem.
FIXME,
the internal intermediate conversion of double floating point machine
values to ascii representations must be dropped,
or replaced with an exact/lossless ascii representation.
(for example GNU printf/scanf %a or 64bit hexadecimal representation)
2012-03-25 11:08:48 +02:00
rlar
4ca58067a2
#2/6 config.h --> ngspice/config.h, #include's
2011-12-27 11:33:01 +00:00
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
2011-12-13 19:57:45 +00:00
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
2011-12-11 18:05:00 +00:00
h_vogt
893fbe1264
warning 'real ac' removed
2011-09-18 09:08:40 +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
rlar
7dfe20bb21
surpress warnings, disable currently unused functions
2011-06-30 18:57:15 +00:00
rlar
6ab91f2e9f
com_measure2.c, uninitialized variable warning
2011-06-30 16:29:42 +00:00
rlar
b778c50bd6
code cleanup, some warnings, some casts, ...
2011-04-28 17:05:22 +00:00
h_vogt
ebda0af288
update FIND ... WHEN measurements
2011-02-19 22:11:45 +00:00
h_vogt
8b4edf1a0c
fix bug. no 3165634
2011-02-12 12:15:04 +00:00
rlar
05441d5823
Nr 5/5 (x = ...) == NULL , swallow warnings
2010-11-19 18:54:40 +00:00
rlar
e6c30efe46
Nr 4/5 (x = ...) != NULL , swallow warnings
2010-11-19 18:52:44 +00:00
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
2010-11-16 20:38:24 +00:00
rlar
80286e0032
pour `IGNORE()' all over the source
2010-11-16 19:11:32 +00:00
rlar
b4ffca60c4
(int) casts for some `strlen()' expressions
2010-11-02 17:17:43 +00:00
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
2010-10-28 19:32:34 +00:00
rlar
196262dd1b
move the com_*() prototypes around.
2010-10-16 17:09:46 +00:00
rlar
3c3b31fa60
declare some functions `static'
2010-10-15 18:43:52 +00:00
h_vogt
590bf0a677
meas ac: remove seg fault
2010-09-15 21:54:46 +00:00
h_vogt
4f45e4aa7f
remove seg fault
2010-09-07 17:51:03 +00:00
dwarning
586acbe45c
fallback for not handled enumeration values in switch
2010-08-06 07:50:20 +00:00
h_vogt
e07486df2a
patch B. Swartz 2010-07-04
2010-07-10 13:22:44 +00:00
h_vogt
fe2d079b31
par('expression')
2010-07-10 11:27:57 +00:00
rlar
c178bdb059
cosmetical changes
2010-06-30 20:08:57 +00:00
rlar
5946300a97
upgrade foo() --> foo(void) ansi function definition
2010-06-23 18:57:13 +00:00
rlar
4420a3ecdd
add prototypes, remove some NULL casts
2010-06-23 17:40:56 +00:00
h_vogt
aab308e863
bug, see support tracker no. 3013968
2010-06-19 18:23:32 +00:00
h_vogt
70b2408f39
updates for .measure
...
new example files
2009-12-21 18:17:38 +00:00
h_vogt
d6350ca86d
add vectors to meas
2009-12-21 00:27:15 +00:00
h_vogt
248e44b883
new measure commands
2009-12-20 16:43:51 +00:00
h_vogt
99533fa109
start value for sine
2009-12-20 08:44:50 +00:00
dwarning
b8d9cf31ab
remove empty statement
2009-11-17 19:28:35 +00:00