1 | initial version |

Note that if you are taking the square root of an integer, the fastest might be the method sqrtrem that returns the ceil of the square root and the rest

```
sage: x = 10
sage: s,r = x.sqrtrem()
sage: print s
3
sage: print r
1
sage: x == s^2 + r
True
```

2 | No.2 Revision |

Note that if you are taking the square root of an integer, the fastest might be the method ~~sqrtrem ~~`sqrtrem`

that returns the ~~ceil ~~floor of the square root and the ~~rest~~remainder:

```
sage: x = 10
sage: s,r = x.sqrtrem()
sage: print s
3
sage: print r
1
sage: x == s^2 + r
True
```

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.