exercise:67d9724b50: Difference between revisions
From Stochiki
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
\newcommand{\secstoprocess}{\all} | \newcommand{\secstoprocess}{\all} | ||
\newcommand{\NA}{{\rm NA}} | \newcommand{\NA}{{\rm NA}} | ||
\newcommand{\mathds}{\mathbb}</math></div> Modify the program ''' MatrixPowers''' so that it prints | \newcommand{\mathds}{\mathbb}</math></div> Modify the program ''' MatrixPowers''' so that it prints out the average <math> \mat {A}_n</math> of the powers <math>\mat {P}^n</math>, for <math>n = 1</math> to <math>N</math>. | ||
out the average <math> \mat {A}_n</math> of the powers <math>\mat {P}^n</math>, for <math>n = 1</math> to <math>N</math>. | |||
Try your program on the Land of Oz example and compare <math>\mat {A}_n</math> and <math>\mat | Try your program on the Land of Oz example and compare <math>\mat {A}_n</math> and <math>\mat | ||
{P}^n.</math> | {P}^n.</math> |
Latest revision as of 00:19, 15 June 2024
[math]
\newcommand{\NA}{{\rm NA}}
\newcommand{\mat}[1]{{\bf#1}}
\newcommand{\exref}[1]{\ref{##1}}
\newcommand{\secstoprocess}{\all}
\newcommand{\NA}{{\rm NA}}
\newcommand{\mathds}{\mathbb}[/math]
Modify the program MatrixPowers so that it prints out the average [math] \mat {A}_n[/math] of the powers [math]\mat {P}^n[/math], for [math]n = 1[/math] to [math]N[/math].
Try your program on the Land of Oz example and compare [math]\mat {A}_n[/math] and [math]\mat {P}^n.[/math]