a question on Assignment Operator (=)

For questions and discussion related to reading in and working with data.
hardmann
Posts: 252
Joined: Sat Feb 26, 2011 9:49 pm

a question on Assignment Operator (=)

Unread post by hardmann »

Dear Tom:

In RATS User’s Guide UG–5, last instrcution as follows

Code: Select all

compute y(1)=y(2)=y(3)=0.0
set zhat = (x2(t)=z2/y2) , x2 * v2/y2 
*X2, V2, Y2, and Z2 are series
This second example at entry T first computes X2(T), then uses that to compute the
value of ZHAT, which will be X2(T)*Y2(T)/Y2(T).

I do not understand the code. Why It not be directly written as follow:

Code: Select all

set zhat = (z2/y2) * v2/y2
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: a question on Assignment Operator (=)

Unread post by TomDoan »

If you also need the X2 series, you can do it in one go.
hardmann
Posts: 252
Joined: Sat Feb 26, 2011 9:49 pm

Re: a question on Assignment Operator (=)

Unread post by hardmann »

Dear Tom
if cancelling t from x2(t), what is different?
set zhat = (x2=z2/y2) , x2 * v2/y2
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: a question on Assignment Operator (=)

Unread post by TomDoan »

Nothing. Including the T just makes it clearer that it's going into a series.
Post Reply