Hi everyone! First of all sorry for my poor english.
I've just started using my TI-Nspire and I've encounterd a problem with programs. I've created a program that uses two functions in (x,y) and I want to create these function (vector projection equation) in another external one. So I called the external program in the main one, but when I do that it cannot find my functions, so I decided to create them in the external program directly, it seems to work as it says "Done" at the end when running it separately, but when it is running inside the other one it occurs an "Argument Error". I copy down there the code of the external program, so you can hopefully help me figure it out.
Define LibPriv inspvp()= Prgm Local px,py 0=:px 0=:py Request "Insert number of vector:",n For i,1,n Disp "Vector ",i Request "Module:",mi Request "Angle:",fi px+mi*cos(fi)=:px py+mi*sin(fi)=:py EndFor Disp px Disp py px=:fpo(x,y) py=:fpv(x,y) EndPrgm
When defining a new function in the other program, from fpo(x,y) and fpv(x,y), the error shows up in the definition of these variables in program up here. If I try to define the function for the other program using the displayed ones it works with no problem, but when doing it in the other program the calculator said that px is not definable as a (x,y) function. It seems to not recognize px and py as expression. How can I make it work? Why it isn't able to define a function from px and py?
I'm really thankful in advance for your help!!