Am 18.08.2016 um 02:49 schrieb Allin Cottrell:
On Wed, 17 Aug 2016, Fernando Fernandes Neto wrote:
>
> matrix Q_S = {1, 1; 1, 1}
> scalar beta_p = 0.9
> matrix Q = beta_p * Q_s
>
> And, when I check the Q Matrix, I find "Nan" in all elements. The output
> should be 0.9 in all elements...
>
In relation to the statements above, it's clear that beta_p * Q_S
should
produce a 2 x 2 matrix all of whose elements equal 0.9. But we don't
know what beta_p * Q_s should produce, since we haven't seen a
definition of Q_s.
Yes, there must be something missing in the above code example. Because
the three code lines above give an "undefined object" error (as they
should). If you (Fernando) don't get this error then you must have
defined Q_s before in the active gretl session, possibly even in a
different script.
cheers,
sven