- #1
76Ahmad
- 48
- 0
Hi All ,
what I am trying to do is, after getting so many solution I just want to print only the intger solution:
For[n = 0, n ≤ 10, n++
Do[Print[{n, (n - Sqrt[Sqrt[
2]Sqrt[3n^2 - 9n +
8] + 3n - 4])/2,
OTHER SOLUTION, (n - Sqrt[-Sqrt[2]
Sqrt[3n^2 - 9n + 8] + 3n - 4])/2}]]]
there will be 10'th solution since n <= 10
put i only want to print if one or both of the Sqrt's are give an integer value.
Please help
thanks
what I am trying to do is, after getting so many solution I just want to print only the intger solution:
For[n = 0, n ≤ 10, n++
Do[Print[{n, (n - Sqrt[Sqrt[
2]Sqrt[3n^2 - 9n +
8] + 3n - 4])/2,
OTHER SOLUTION, (n - Sqrt[-Sqrt[2]
Sqrt[3n^2 - 9n + 8] + 3n - 4])/2}]]]
there will be 10'th solution since n <= 10
put i only want to print if one or both of the Sqrt's are give an integer value.
Please help
thanks