Update linalg.rst

Complemented linreg() documentation
Corrected examples on linreg function

Removed the prompt and semicolons
Merge pull request #6799 from brk00/patch-1

Update linalg.rst