IBM Release 1.93 manual Reserved Names, i l l u m i n a t i o n p l a n e a f t e r

Models: Release 1.93

1 93
Download 93 pages 50.46 Kb
Page 46
Image 46
3.7.1. Reserved Names

fs

=

ps/1000

 

as

=

fs/1000

 

kHz

=

1000

 

MHz

=

1000*kHz

 

GHz

=

1000*MHz

 

THz

=

1000*GHz

 

EHz

=

1000*THz

 

pi

=

3.141592653589793

 

twopi

=

2*pi

 

deg

=

pi/180

 

degree

=

deg

 

rad

=

1.0

 

cycle

=

twopi

 

c

=

299792458

 

mu0

=

4*pi*1e-7

Figure 2.16 Detail of the launch

eps0

=

1/(c*c*mu0)

end. Note the unidirectional

 

 

 

3.7.1. Reserved Names

character of the Gaussian beam

source, and the weak reflected

Defining variables with the same name as a function

field leaking back through the

(user or built-in) is legal but not a good idea. If you

i l l u m i n a t i o n p l a n e a f t e r

do it, the variable will override the function in all

travelling about 110 µm.

subsequent statements. Because of the potential for

 

confusion, it is forbidden to define a user function with

 

the same name as a built-in function. Built-in variables have the same precedence as user variables (i.e. the highest) so defining functions with these names is forbidden, because they could never be evaluated.

List of all reserved variable names: freq lambda omega x y z k u v w

Hz kHz MHz GHz THz EHz cycle deg degree rad pi twopi km m cm mm um micron nm angstrom s ms us ns ps fs as c mu0 eps0 tol penalty merit

List of reserved function names:

ABS MAX MIN FORMAT TRUNC ROUND ROOT1D MINIMIZE INTEGRAL SQRT POW SIN COS TAN ATAN ATAN2 ASIN ACOS LN EXP ERF ELINTK ELINTK1 BOWTIEZ0 AU_N AU_K SI_N SI_K ASI_N ASI_K PSI_N PSI_K NI_N NI_K CU_N CU_K SIN_N SIN_K SIO2_N SIO2_K

CONFINE

42

Page 46
Image 46
IBM Release 1.93 manual Reserved Names, i l l u m i n a t i o n p l a n e a f t e r