Post Reply 
MOD, ODD() in Program
03-27-2014, 01:10 AM
Post: #7
RE: MOD, ODD() in Program
(03-26-2014 04:02 PM)Angus Wrote:  Thank you, Han. That is it.


edit: if programs are homeview operations how come I can do a program like:

EXPORT tst()
BEGIN
LOCAL eq:="x^2+1";
LOCAL ret:=int(eq);
RETURN ret;
END;

and do not need a CAS.int() command. Plus the result is X*(x^2+1) no matter if in cas or home. 'X' and 'x' are mixed.
Now that I started to think about all that it confuses me more and more.....

Plus I did not notice anything about cas and Home in the help System or in the manual. Is there a reference anywhere? Where do I get such important facts from? Of course there will be similar problems in the future if I keep working with the prime which I would like to deal with alone.

When you intentionally leave off the second parameter for the int() command (i.e. the variable of integration), the command will assume that you are integrating with respect to \( X \) (capital letter). Since lowercase \( x \) is not the same as capital \( X \), then the integrand \( x^2+1 \) is considered to be a constant, so that the integral (principal result) is simply the constant multiplied by the variable of integration: \( (x^2+1) \cdot X \)

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
MOD, ODD() in Program - Angus - 03-25-2014, 02:21 PM
RE: MOD, ODD() in Program - Han - 03-25-2014, 03:37 PM
RE: MOD, ODD() in Program - Angus - 03-26-2014, 10:33 AM
RE: MOD, ODD() in Program - Han - 03-26-2014, 03:55 PM
RE: MOD, ODD() in Program - Angus - 03-26-2014, 04:02 PM
RE: MOD, ODD() in Program - Han - 03-27-2014 01:10 AM
RE: MOD, ODD() in Program - Angus - 03-27-2014, 08:21 AM
RE: MOD, ODD() in Program - Han - 03-27-2014, 03:24 PM
RE: MOD, ODD() in Program - Angus - 03-27-2014, 05:02 PM
RE: MOD, ODD() in Program - Han - 03-27-2014, 05:13 PM



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