I'm writing a Maple procedure and I have a line that is "if ... then ..." and I would like it to be if k is an integer (or if k^2 is a square) - how would onw say that in Maple? Thanks!
2026-03-25 17:28:17.1774459697
Maple: If a number is an integer/square
625 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
To check whether something is an integer, you can use the type command. For example,
To check whether an integer is a perfect square, you can use the issqr command, as in the following examples:
Thus, your if statement might (if I'm guessing your intent correctly) look something like this.