| Author |
Comment/Response |
Ann
|
09/27/08 12:41pm
Hi,
When I want to check if the results of an expression are an integer or not, I do the following:
Expression: Root of 3n^2+6*n+4
Lets call this K
Then I take the table of this expression with n is 1 to 1000. I'll call this M
M = Table[K, {n, 1, 1000}]
I want to know whether these numbers are integers or not.
IntegerQ[M]
But then I get always the output False.
But I want to know for every result if it is True or False.
Perhaps it has something to do with the fact that I put a list in IntegerQ (with the brackets {}). (If I want to know if it are Prime Numbers or not, I input PrimeQ[M] and then I do get for every result True or False)
What do I have to do?
URL: , |
|