14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 8 Programming Methods 209<br />

Advanced Scoping and Namespaces<br />

d = b[1] ^ 2 + b[2] ^ 2;<br />

Eval List( {a[1] :* b[1] - a[2] :* b[2] / d, a[2] :* b[1] - a[1] :* b[2]<br />

/ d} );<br />

);<br />

complex:char = Function( {a}, Char( a[1] ) || "+" || Char( a[2] ) || "i" );<br />

);<br />

Namespace( "complex" )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!