Post Reply 
Problems with my first program [solved]
12-27-2013, 11:19 AM
Post: #3
RE: Problems with my first program
Ready!

[Image: Captura+de+pantalla+de+2013-12-27+07%253A51%253A54.png]

[Image: Captura+de+pantalla+de+2013-12-27+07%253A52%253A14.png]

[Image: Captura+de+pantalla+de+2013-12-27+07%253A52%253A33.png]

The code:

Code:
EXPORT tiro1()
BEGIN
local M,local, lista1, lista2,angulo,str;

CHOOSE(M, "Unidades", "SI", "US");
IF M==1 THEN
  str := "m";
  G := 9.80665;
ELSE 
  str := "pies";
  G := 32.17404;
END;

//Manejo el tema del formato de los angulos
angulo := HAngle;
HAngle := 1; //Modo = grados


lista1 := {"Pos. en X:", "Pos. en Y:", "Angulo:","Vel. inicial:"};
lista2 := {"PosiciĆ³n inicial en X ("+str+")","PosiciĆ³n inicial en Y ("+str+")","Angulo alfa (grados)","Velocidad inicial ("+str+"/s)"};

INPUT ({L,H,A,V},"Condiciones iniciales",lista1, lista2);


X1 := "L+V*COS(A)*T";
Y1 := "H+V*SIN(A)*T-G*T^2/2";
STARTAPP("Parametric");
CHECK(1);

Xmin := -1;
Xmax := L+(V^2*SIN(2*A))/G;
Ymin := -1;
Ymax := H+(V*V*SIN(A)*SIN(A))/(2*G);

STARTVIEW(1,1);

HAngle := angulo;

END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Problems with my first program - ArielPalazzesi - 12-27-2013 11:19 AM



User(s) browsing this thread: 1 Guest(s)