Re: [Meep-discuss] Error while writing tutorial programe

2012-09-03 Thread Simon Huskier
There is an error in the statement (define sx (+ (* 2 (+ pad dpml N)) d-1)). Do you mean that sx = 2*(pad+dpml+N) + (d-1)? Then the correct statement is (define sx (+ (* 2 (+ pad dpml N)) (- d 1))) If you mean something else, remember the expressions in CTL is different from the natural way to wr

[Meep-discuss] Error while writing tutorial programe

2012-09-03 Thread Mukul
meep> (define-param eps 12) meep> (define-param w 1.2) meep> (define-param r 0.36) meep> (define-param d 1.4) meep> (define-param N 3) meep> (define-param sy 6) meep> (define-param pad 2) meep> (define-param dpml 1) meep> (define sx (+ (* 2 (+ pad dpml N)) d-1)) Backtrace: In current input: 9: