IBM Release 1.93 manual Random, ROOT1D, Round, Sign, Sin, Sqrt, Tan, Trunc

Page 51

3.8.26. RANDOM

Interface to the REXX pseudorandom number generator. Returns a pseudorandom integer from <min_expression>> to <max_expression>, inclusive, and optionally re-seeds the generator with <seed_expression>, evaluated and rounded to an integer. Default values : <min_expression 0, <max_expression 100,000. One restriction is that the difference between the maximum and minimum limits must not exceed 100,000.

Syntax: Random(<min_expression>, <max_expression>, <seed_expression>)

3.8.27. ROOT1D

Finds a root of the given expression. Guess1 and guess2 must have opposite signs. Currently just a stub.

Syntax: Root1D(expression, unknown, guess1 guess2, min max)

3.8.28. ROUND

Rounds expression to the specified number of decimal places, or to the nearest integer. Numbers exactly halfway between steps are rounded up.

Syntax: Round(<expression>[, <places>])

3.8.29. SIGN

Signum function. Returns +1, 0, -1 for <expression> >0, =0, and <0. Syntax: Sign(<expression>)

3.8.30. SIN

Returns the sine of radian angle <expression>.

Syntax: sin(<expression>)

3.8.31. SQRT

Returns the square root of a non-negative number.

Syntax: Sqrt(<expression>)

3.8.32. TAN

Returns the tangent of radian angle <expression>.

Syntax: tan(<expression>)

3.8.33. TRUNC

Evaluate <expression> and truncate (round towards zero).

Syntax: trunc(<expression>)

47

Image 51
Contents IBM T. J. Watson Research Center Yorktown Heights, NY Page IBM T. J. Watson Research Center Yorktown Heights, NY HOW Poems Works Using PoemsMotivation Chapter IntroductionPhilosophy Optimization StructurePage Poems system organization Program Organization Front-End Script poems.cmdScript Operation Postprocessor Empost Fdtd Engine FIDO/TEMPESTCluster Control Visualization System VIS5DParallel Processing Command Reference Poems Command-Line OptionsGlobal Group Hosts FreqLambda FunctionMacdef Which means that the host’s predefined hostname is not usedPrint MacroRandomseed SETSimulator Boundary World GroupTitle VerboseDefine Material GroupBasicstep Xrange YrangeParameters epsReal epsImag muReal muImag Object Group BlockFAN Grating HollowboxTiledplane Curve 3DCURVECylinder Source Group Output Group Command GroupWebpage Postprocess GroupField CADFarfield FluxIntegral Modematch ListMOVIE3D MovieSlice DissipationOptimize Group VariablesGuess Limit StorePenalty Merit Schedule Group ParametersRange Symmetry Computational DomainObjects Materials Perfectly-Matched LayersPlane Waves Page Beam Sources Merit Functions OptimizationPhase uniformity across a plane 10 Optimized V antenna refractive Worked Example Optimizing a V AntennaPage Worked Example Doped Silica Waveguide Mode Worked Example Glass Ridge Waveguide to Free Space CouplerPredefined Constants Confine Reserved NamesArithmetic Operators Predefined Mathematical FunctionsAcosh Logical OperatorsABS AcosElintk ATAN2Ceil COSMIN Integral20. LN MAXSign RandomROOT1D RoundAnalytical Pupil Functions Material Parameter FunctionsFlattop Tempest and General Fdtd Information Startup and Steady StateTime step Page Appendix A. V-Antenna Optimization Run Poems Input DIPOLE2I.PAR END Material END Object END World Subdomain ALLEND Command END SourceEND Output END Optimize END Postprocess Amplex PhaseexPage Page Page END Tempest Input File DIPOLE2I.PAR.IN Written by Phil Hobbs Pages of pointsource statements omitted DIPOLE2IEXQ Postprocessor orders DIPOLE2I.ORDERSALL DIPOLE2IEXIDIPOLE2IEZQ DIPOLE2IEYIDIPOLE2IEYQ DIPOLE2IEZIPOSTPROC.1.PARMSTRING MiddlefluxPOSTPROC.1.NAME Array AmplexFF2 DIPOLE2IPHASEEXArray POSTPROC.2.PARMSTRINGDIPOLE2IPZ DIPOLE2IPXPOSTPROC.6.NAME Array PoyntingzSlice Indexn POSTPROC.9.PARMSTRINGPOSTPROC.10.PARMSTRING POSTPROC.11.NAMEPOSTPROC.14.NAME Slice PoyntingzPOSTPROC.13.COMPARISONDOMAIN DIPOLE2IPZXY0.BMPSlice Amplex POSTPROC.16.COMPARISONDOMAINDIPOLE2IPXZX0.BMP POSTPROC.17.NAMEDIPOLE2IDISSZX0.BMP DIPOLE2IPHASEEXXY0.BMPDIPOLE2IPHASEEXZX0.BMP POSTPROC.20.COMPARISONDOMAINDIPOLE2IEXQZX0.BMP POSTPROC.24.COMPARISONDOMAINRun Results DIPOLE2I.SIMPLEX Page Page Page Page Page Tempest patches Fdtd and TempestTempest limitations Advice common to all or most Fdtd programsSample X11 Configuration Window System ConfigurationRunning Vis5D Release NotesWish list Beta Release Limitations Page Page Index Emdenormal EmunderflowMatlab Maxordersources 81 Maxpointsources