Hi All ,(adsbygoogle = window.adsbygoogle || []).push({});

what im 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

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to put a condition for printing in mathematics

Loading...

Similar Threads for condition printing mathematics |
---|

LaTeX Printing Code from Python in Latex via "minted" |

**Physics Forums - The Fusion of Science and Community**