Jump to content

Recommended Posts

Posted

Boa tarde,

Tenho a seguinte dúvida em matlab.

Cálculo do VAL, ROI e da TIR (convergência com diferença entre duas iterações sucessivas inferior a 0,01%) com recurso a MATLAB.

Solicitar grandezas ao utilizador (Ea, ha, It, Pi, a, n, dom)

Já fiz a primeira parte,

TIR=0.1;
deltaTIR=0.001;
iter=0;
Pi=10*10^6;
ha=2500;
precoEE=75*10^6;
io1= 1.2;
n=20;
dom=0.015;
a=0.07;
ka=10.594;
it=12000000;
rl=1695000;

while abs (deltaTIR)>=0.001 & iter<100 
    
    iter=iter+1;
    tir1=(rl/it)*(((1+TIR)^n)-1)/((1+TIR)^n)
    deltaTIR=tir1-TIR;
    TIR=tir1;
  
end 

 val=(rl*ka)-io1
 roi=(rl*ka)/it

Não sei é Solicitar grandezas ao utilizador (Ea, ha, It, Pi, a, n, dom).

Espero que alguem me consiga ajudar.

Obrigada

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.