Hello! I am trying to simulate Pspice netlist in t-spice. I am using a mosfet and a subcircuit. The problem is, I get an error stating:
"syntax error, unexpected unary function call, expecting ) (right paren) or device or node name"
the line of code in which the error is popped is:
.FUNC ROUND(x) { x-IF(cos(PI*x)>0,arcsin(sin(PI*x))/PI,-arcsin(sin(PI*x))/PI) }
What exactly am I doing wrong here? And if someone does not have a direct answer, can you please tell me where can I find more information about these functions? Thank you in advance.