Post Reply 
MOD, ODD() in Program
03-26-2014, 03:55 PM (This post was last modified: 03-26-2014 03:56 PM by Han.)
Post: #5
RE: MOD, ODD() in Program
(03-26-2014 10:33 AM)Angus Wrote:  Thanks for the info so far.
I think I did try == for equality first, that would be natural since I use c for at least 90% of my work... Well maybe I was blind. I will try that later on tthe day.

Do I understand you correctly that I should do like?

IF FP(N/2) != 0 THEN //test for odd N

...which I suppose does not work.

For non-equality, consider using <> (or you can use the \( \not = \) symbol. The != syntax is valid in the CAS view; however programs are considered "Home view" operations.

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)