02-18-2016, 04:35 PM
in all the languages I've programmed the RETURN instruction end the function
Why not the case in the language of hpprime?
prg1(3,4) [ENTER] => [1,4,9] OK & not 5
Why not the case in the language of hpprime?
Code:
#cas
prg1(x,y):=
BEGIN
a:=seq(x^2,x,1,3);
return a;
√(x^2+Y^2);
END;
#end
prg1(3,4) [ENTER] => [1,4,9] OK & not 5