(In reply to
re: Whole numbers is reasonable assumption by Gamer)
Perhaps my prior comment was a complaint, of a sort, though I wasn't trying to issue one. I was just wondering if it were possible to provide a more complete solution using only the operators provided. If one adds the ternary operator (?:), one might give the answer...
(k%1 = 0 ? 1-k%2*2 : "multiple roots exist")
Though the message "multiple roots exist" is not, by definition, an evaluation, it does provide a little more information than the simple error messages that many calculators, spreadsheets, and many other computer applications do.
As to where k = 1/n, where n is an odd positive integer, the solution -1 is the primary root, though other complex roots exist.
|
Posted by Dej Mar
on 2008-01-29 07:03:42 |