Syntax Error - HP PRIME
Posted: 01 May 2018, 11:57
Hi,
My Hp Prime gives me a Syntax Error but my Virtual Calculator doesn't (whit the exactly same programm).
I don't know what could be the problem.
Days before I had problems putting apps in my calculator, but these problems were solved by pressing the reset button. I've done it again and this time it hasn't worked, cause the syntax error still appears.
Do you think it's a problem with the calculator and I have to contact the technical support service?
Thank you!!!
My Hp Prime gives me a Syntax Error but my Virtual Calculator doesn't (whit the exactly same programm).
I don't know what could be the problem.
Days before I had problems putting apps in my calculator, but these problems were solved by pressing the reset button. I've done it again and this time it hasn't worked, cause the syntax error still appears.
Do you think it's a problem with the calculator and I have to contact the technical support service?
Thank you!!!
- Code: Select all
EXPORT Interpolacion_Lineal()
BEGIN
//Programa que nos permite interpolar linealmente
//Declaramos las variables
LOCAL A,B,C,D;
LOCAL X,Y;
PRINT;
//Introducioms las coordenadas de los puntos
INPUT({A,B},"Introduzca el punto (A,B)");
INPUT({C,D},"Introduzca el punto (C,D)");
INPUT(X,"Introduzca la 1a coord de (X,Y)");
// Calculo de la interpolación
Y:=B+((D-B)*(X-A)/(C-A));
// Nos devuelve el valor calculado
PRINT("El valor interpolado es: Y="+Y);
END;