LTspice
Production
LTspice® is a powerful, fast, and free SPICE simulator software, schematic capture and waveform viewer with enhancements and models for improving the simulation...
LTspice on Analog.com
^ is a boolean operation. It you mean to square the number, use **. ^ is not for exponents :)
try this:
.PARAM Gk=1/(GBr**2)
Shades of FORTRAN!! That never occurred to me! That worked, but the parentheses were unnecessary. It does not matter if 1/GBr or GBr gets squared in this specific instance. Thank you so much. By the way, I tried looking up the LTSpice mathematical operations list before filing my false bug report. It would be nice if there was a list available within the LTSpice "help" function. Of course, I never thought to check the boolean functions.
Hi RZetopan ,
From the help:
Numerical parameters support the following operations, grouped in reverse order of precedence of evaluation:
| Operand | Description |
|---|---|
| & | Convert the expressions to either side to Boolean, then AND. |
| | | Convert the expressions to either side to Boolean, then OR. |
| ^ | Convert the expressions to either side to Boolean, then XOR. |
| > | True if expression on the left is greater than the expression on the right, otherwise false. |
| < | True if expression on the left is less than the expression on the right, otherwise false. |
| >= | True if expression on the left is greater than or equal the expression on the right, otherwise false. |
| <= | True if expression on the left is less than or equal the expression on the right, otherwise false. |
| + | Floating point addition |
| - | Floating point subtraction |
| * | Floating point multiplication |
| / | Floating point division |
| % | Remainder of floating point division, same as mod(x,y) function |
| ** | Raise left hand side to power of right hand side, only real part is returned, e.g., -2**1.5 returns zero, not 2.82843i |
mike