Post Reply 
New to programming
06-11-2015, 04:20 AM
Post: #7
RE: New to programming
(06-11-2015 03:07 AM)Han Wrote:  
(06-11-2015 02:19 AM)Clod Wrote:  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 :/

I don't have my Prime in front of me and I don't have the emulator on this machine, either. That said, does:

CAS.limit("H*Xi*x","x",0);

work?

Nope, it returns 0, no matter what the inputs are :C
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)