Post Reply 
New to programming
06-11-2015, 02:19 AM (This post was last modified: 06-11-2015 02:41 AM by Clod.)
Post: #5
RE: New to programming
(06-10-2015 06:32 AM)Didier Lachieze Wrote:  
(06-10-2015 01:24 AM)Clod Wrote:  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).

The CAS programs are not visible as other programs in the Toolbox > User menu but they are listed in the Vars > CAS menu, so you can access them without having to spell them on the keyboard.

On this topic, there is a great article from Han in the Article Forum section: HP Prime CAS Programming.

(06-10-2015 06:33 AM)Angus Wrote:  Did you know that if you write a cas program it is listed under Vars/CAS/Program not in the Toolbox/User section? I think that is not too clearly arranged, but in an other post Tim pointed out that they chose that until they find a perfect solution for the filesystem.

I am not sure if you knew because of
Quote: "EXPORT XXX()" command which would allow me not to write "tvf()" manually (which is a pain in the ass).

Thanks for your responses. By the way, I'm having trouble trying to add this:

LOCAL ans:= CAS.limit(H*Xi*x,"x",0);

I dunno why it doesn't work the way I want to... :C
It won't compile... and changing it to "x" will return a "Bad Argument Value"

From the link you people provided, I could make this one work just fine:

Code:
EXPORT TVF(H,Xi)
BEGIN
  LOCAL cmd:= "limit(" +H*Xi+ "*x,x,0)";
  CAS(cmd)
END;

But I find that kind of coding messy and ugly :/
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)