# Common Lisp Quick Reference - Cheat Sheet

Common Lisp Quick Reference - Cheat Sheet

Common Lisp Quick Reference( Fu( Fu( Fusinh a)cosh a)tanh a)⊲ sinha, cosha, or tanha, respectively.( Fu( Fu( Fuasinh a)acosh a)atanh a)⊲ asinha, acosha, or atanha, respectively.( Fucis a)⊲ Return e ia = cosa+isina.( conjugate Fua) ⊲ Return complex conjugate of a.( Fu( Fumax num + )min num + )⊲ Greatest or least, respectively, of nums.⎧{ round Fu Fu ⎫fround}⎪⎨{ floor Fu Fu ⎪⎬ffloor}({ ceiling ⎪⎩Fufceiling}Fu n [d 1 ])⎪⎭{ truncate Fuftruncate}Fu⊲ Return as integer or float, respectively, n/d rounded, orrounded towards −∞, +∞, or 0, respectively; and remainder.2({ Fu}modFu n d)rem⊲ Same as floor Fuor truncate, Furespectively, but return remainderonly.random-state( Fulimit [staterandom-state])var⊲ Return non-negative random number less than limit, andof the same type.( make-random-state Fu [ ]{state NIL T} NIL )⊲ Copy of random-stateobject state or of the current randomstate; or a randomly initialized fresh random state.var⊲ Current random state.( float-sign Funum-a [num-b 1 ])⊲ num-b with num-a’s sign.( signum Fun)⊲ Number of magnitude 1 representing sign or phase of n.( Fu( Funumerator rational)denominator rational)( Fu( Fu⊲ Numerator or denominator, respectively, of rational’scanonical form.realpart number)imagpart number)⊲ Real part or imaginary part, respectively, of number.( complex Fureal [imag 0 ])⊲ Make a complex number.( phase Funumber)⊲ Angle of number’s polar representation.( abs Fun)⊲ Return |n|.( Fu( Furational real)rationalize real)⊲ Convert real to rational. Assume complete/limited accuracyfor real.( float Fureal [prototype 0.0F0 ])⊲ Convert real into float with type of prototype.4

More magazines by this user
Similar magazines