Post Reply 
programs in physical hardware fail
07-01-2014, 11:58 AM
Post: #2
RE: programs in physical hardware fail
I can give you an example of some short code that does give a syntax error in lnie 5 e.g. when transferred to the physical calculator.

Code:

//SUBROUTINES
EXPORT FIRCORE(N)
BEGIN
  LOCAL CORE:=seq(0,N);
  FOR I FROM 0 TO N-1 DO
    CORE(I+1):=(12*I-6*(N-1))/(N*(N²-1));
  END;
  RETURN CORE; 
END;

EXPORT FIR(V,C)
BEGIN
  LOCAL N;
  LOCAL RES:=0;
  LOCAL LEN:=DIM(C);
  FOR N FROM 1 TO LEN(1) DO
   RES := RES+V(N)*C(N);
  END;
  RETURN RES;
END;

If someone can point out what is wrong I would be glad. But I have NO idea why on the emulator there are no problems at all.

I would kindly ask to look at these things! Essential for any usage I think.

btw there seem to be issues with the con-kit. I restarted everything and was able to drag the program into the prime w/o having a blank program as a result.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
programs in physical hardware fail - Angus - 07-01-2014, 11:46 AM
RE: programs in physical hardware fail - Angus - 07-01-2014 11:58 AM



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