I checked the "Help". On my installation (ver 2.03q, 27 Jun 2003) the
topic called "Waveform Arithmetic" includes some sexy full-color
screen captures and most definitely lists :
" int(x) | convert x to integer
floor(x) | integer equal or less than x
ceil(x) | integer equal or greater than x "
among the allowed functions.
The topic for "G. Voltage Dependent Current Source" is a little bit
ambiguous; the fourth form of syntax is described as :
"Syntax: Gxxx n+ n- value={<expression>}
This is an alternative syntax of the behavioral source, arbitrary
behavioral voltage source, B. "
which I took to mean that any expression legal for a "B" source could
also be used for the "G" source.
Certainly, the program behavior I observed is not entirely consistent
with the "Help" file content but I'm not sure which is correct.
Dale
--- In LTspice@..., "analogspiceman" <analogspiceman@y...>
wrote:
--- In LTspice@..., "Dale" <dchishol@c...> wrote:
When entering a waveform expression using the "int()", "ceil()" or
"floor()" functions I get error messages that "int" (or "ceil" or
"floor") is an undefined symbol. For the record, the expression I'm
entering is:
int(32*V(3)/(2*pi))
and "V(3)" is a valid node voltage in my simulation.
Am I doing something wrong, or is this a program bug?
Thanks for suggestions
Dale
p.s. - I've also had problems using the sgn() function in
expressions for the "F" and "G" sources, though it seems to work
with "B" sources.
Hello,
The functions you named are not valid for waveform arithmetic and may
only be used in behavioral sources. Check the help file. Or better
still, check my included crib sheet which contains many functions not
listed in the help file as well several corrections to errors there.
> - - - Remainder Truncated - - - <