Post Reply 
New to programming
06-10-2015, 01:24 AM (This post was last modified: 06-10-2015 01:24 AM by Clod.)
Post: #1
New to programming
Hi everyone! I've recently purchased the HP-Prime and I'm struggling to get a program of my own to work. First I did the following one:

Code:

#cas
tvf(H,Xi):=
BEGIN
  LOCAL ans;
  ans:=limit(H*Xi,x,0);
  return ans;
END;
#end

Which works just fine... Howeeeeeeeeeeeeeeeeeeever, it seems I'm not able to use the "EXPORT XXX()" command which would allow me not to write "tvf()" manually (which is a pain in the ass). So, I t[/code][/php]ried to do this next:

Code:

EXPORT PROGRAMS(H,Xi)
BEGIN
  LOCAL ans;
  ans:=CAS.limit(H*Xi,X,0);
  return ans;
END;

This one has two problems. The first one, it won't allow you to use the "x" in lowercase (so I have to use the uppercase one, which is bothersome) aaaaaaand whenever the answer is infite or zero it just return an "undefine"... Could someone help me out please? Big Grin
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New to programming - Clod - 06-10-2015 01:24 AM
RE: New to programming - Clod - 06-10-2015, 04:56 AM
RE: New to programming - Didier Lachieze - 06-10-2015, 06:32 AM
RE: New to programming - Angus - 06-10-2015, 06:33 AM
RE: New to programming - Clod - 06-11-2015, 02:19 AM
RE: New to programming - Han - 06-11-2015, 03:07 AM
RE: New to programming - Clod - 06-11-2015, 04:20 AM



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