how to solve an equation?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

tanghanpost
Posts: 27
Joined: Tue Dec 30, 2008 6:39 am

how to solve an equation?

Postby tanghanpost » Tue Mar 24, 2009 2:25 am

Dear all,
I have an equation like : 95=1.2*(1+r)+1.5*(1+r)^2+1.6*(1+r)^3+1.7*(1+r)^4
if i want to solve the equation and get r, is there any one who can teach me how to do this in eviews?
very thanks!

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: how to solve an equation?

Postby startz » Tue Mar 24, 2009 6:59 am

tanghanpost wrote:Dear all,
I have an equation like : 95=1.2*(1+r)+1.5*(1+r)^2+1.6*(1+r)^3+1.7*(1+r)^4
if i want to solve the equation and get r, is there any one who can teach me how to do this in eviews?
very thanks!


EViews isn't really well set up to do this, since
(1) there are four different answers
(2) some of the answers are complex.

But I think the answers are
-2.9343
-0.2221 + 2.7864i
-0.2221 - 2.7864i
2.4374


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 20 guests